[Test] runTest.sh typo
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 31 Jan 2019 01:47:35 +0000 (10:47 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 31 Jan 2019 05:34:43 +0000 (14:34 +0900)
If statements of bash uses ==, not =, for equal-comparison

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tests/nnstreamer_decoder_image_labeling/runTest.sh

index cb83d38..26b68d5 100644 (file)
@@ -28,7 +28,7 @@ PATH_TO_FILE="tensordecoder.log"
 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} filesrc location=\"${PATH_TO_IMAGE}\" ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format=RGB, framerate=0/1 ! tensor_converter ! tensor_filter framework=\"tensorflow-lite\" model=\"${PATH_TO_MODEL}\" ! tensor_decoder mode=image_labeling option1=\"${PATH_TO_LABEL}\" ! filesink location=\"${PATH_TO_FILE}\"" D1 0 0 $PERFORMANCE
 
 label=$(cat "${PATH_TO_FILE}")
-if [ $label = "orange" ]
+if [ "$label" == "orange" ]
 then
        testResult 1 D1A "Decoding Orange"
 else