X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fdo_curl_function.sh;h=6476711fcf61ce5183156932fc367cbfbbecacef;hb=f81090f8f5f1fd1a76bb9feab1f41f03252297c3;hp=a3f5507ec4a5ea333916414b5fb7646f3a0c90b3;hpb=05bfe48a83b1d7bf719eb94444ffc1377b998273;p=nonrtric.git diff --git a/test/common/do_curl_function.sh b/test/common/do_curl_function.sh index a3f5507e..6476711f 100755 --- a/test/common/do_curl_function.sh +++ b/test/common/do_curl_function.sh @@ -93,7 +93,9 @@ do_curl() { exit 1 else echo " OK, code: "$status" (Expected)" - if [[ "$content_type" == *"$resp_content"* ]]; then + if [[ "$resp_content" == '*' ]]; then + : + elif [[ "$content_type" == *"$resp_content"* ]]; then echo " Content type: "$content_type" (Expected)" else echo " Expected content type: "$resp_content