[ssat] Execute runTest.sh properly
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 1 Sep 2023 07:07:50 +0000 (16:07 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 5 Sep 2023 02:50:40 +0000 (11:50 +0900)
- Those runTest.sh are not executed regardless of the ret value of the python script. Fix It.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/nnstreamer_merge/runTest.sh
tests/nnstreamer_repo_lstm/runTest.sh
tests/transform_clamp/runTest.sh
tests/transform_stand/runTest.sh
tests/transform_transpose/runTest.sh

index ca9687c..27340aa 100644 (file)
@@ -25,8 +25,8 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 ../nnstreamer_converter/generateGoldenTestResult.py 9 || echo "Failed to run test preparation script (generateGoldenTestResult.py). Test not available." && report && exit
-    python3 generateTest.py || echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit
+    python3 ../nnstreamer_converter/generateGoldenTestResult.py 9 || (echo "Failed to run test preparation script (generateGoldenTestResult.py). Test not available." && report && exit)
+    python3 generateTest.py || (echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit)
     sopath=$1
 fi
 convertBMP2PNG
index 1caa1ee..dcc129a 100755 (executable)
@@ -48,7 +48,7 @@ if [ -z ${SO_EXT} ]; then
 fi
 
 # Generate video_4x4xBGRx.xraw & golden
-python3 generateTestCase.py || echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit
+python3 generateTestCase.py || (echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit)
 
 gstTest "--gst-plugin-path=../../build \
 tensor_mux name=mux sync-mode=nosync ! \
index c1148db..d7d7252 100755 (executable)
@@ -26,7 +26,7 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 generateTest.py || echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit
+    python3 generateTest.py || (echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit)
     sopath=$1
 fi
 
index 0521938..316fc0e 100644 (file)
@@ -25,7 +25,7 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 generateTest.py || echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit
+    python3 generateTest.py || (echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit)
     sopath=$1
 fi
 
index 94f563f..0188fc6 100755 (executable)
@@ -25,7 +25,7 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 generateTest.py || echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit
+    python3 generateTest.py || (echo "Failed to run test preparation script (generateTest.py). Test not available." && report && exit)
     sopath=$1
 fi