projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8831a6b
)
Test: skip the test if there's no test.sh.
author
Tatsuo Ishii
<ishii@sraoss.co.jp>
Sat, 15 Apr 2023 07:26:23 +0000
(16:26 +0900)
committer
Tatsuo 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
patch
|
blob
|
blame
|
history
diff --git
a/src/test/regression/regress.sh
b/src/test/regression/regress.sh
index d791d246a196b628a9b972a68a04549f09d775ba..8f7503557830ab1f553dd0eafcbe9994f9bcaac5 100755
(executable)
--- 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