X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Ftest%2Fcommon%2Ftest_common.sh;h=a45a6ffeb83ea2345772921d2f8f720a578aad9c;hb=967079bda24e7a0f5268728f1474ce0ddc9e52d0;hp=6c669c1110e928586ff19afd344f78bcb351480f;hpb=868107297d275a6f50790a5e6d3de6c65cbd4a3e;p=sim%2Fa1-interface.git diff --git a/near-rt-ric-simulator/test/common/test_common.sh b/near-rt-ric-simulator/test/common/test_common.sh index 6c669c1..a45a6ff 100755 --- a/near-rt-ric-simulator/test/common/test_common.sh +++ b/near-rt-ric-simulator/test/common/test_common.sh @@ -36,7 +36,7 @@ do_curl() { if [ $# -gt 3 ]; then curlstr=$curlstr" -H Content-Type:application/json --data-binary @"$4 fi - echo " CMD:"$curlstr + echo " CMD (${BASH_LINENO[0]}):"$curlstr res=$($curlstr) status=${res:${#res}-3} body=${res:0:${#res}-3} @@ -53,7 +53,6 @@ do_curl() { elif [[ "$RESULT" == "json:"* ]]; then result=${RESULT:5:${#RESULT}} #Remove 'json:' from the result string res=$(python ../common/compare_json.py "$result" "$body") - echo $res if [ $res -eq 0 ]; then echo " Expected json body :"$result echo " Body as expected"