pgpool2.git / summary / log / commit / refs
commit 296cecd5a1ac0fd8f4e1133b26be75a747819e71
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Sat Apr 15 07:26:23 2023 +0000
Test: skip the test if there's no test.sh.
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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/test/regression/regress.sh b/src/test/regression/regress.sh
index d791d246a..8f7503557 100755
--- a/src/test/regression/regress.sh
+++ b/src/test/regression/regress.sh
@@ -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
[parent: 8831a6b0b580]