Test: skip the test if there's no test.sh.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 15 Apr 2023 07:26:23 +0000 (16:26 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 15 Apr 2023 07:33:51 +0000 (16:33 +0900)
This is useful when developers want to run the test on git repository
because the check suppresses false positive errors. There could newer
branch's test directories remain without any contents and regress.sh
reports wrong failures.

src/test/regression/regress.sh

index d791d246a196b628a9b972a68a04549f09d775ba..8f7503557830ab1f553dd0eafcbe9994f9bcaac5 100755 (executable)
@@ -205,6 +205,13 @@ fi
 for i in $dirs
 do
        cd $i
+
+       # skip the test if there's no test.sh
+       if [ ! -f test.sh ];then
+               cd ..
+               continue;
+       fi
+
        echo -n "testing $i..."
        clean_all
        timeout $TIMEOUT ./test.sh > $log/$i 2>&1