Test: fix regress.sh to show correct number of total tests.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 29 Apr 2023 12:44:59 +0000 (21:44 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 30 Apr 2023 06:57:56 +0000 (15:57 +0900)
Previously it ignored the number of timed out tests. As a result total
number of tests showed incorrect number because num-total tests was
calculated as num-ok + num-failed.

This is an oversight when timeout was introduced in 6688332da.

src/test/regression/regress.sh

index 5276fbfea6357bd52a941b70842795c164f946f0..7632e333d18e83ad3382fbfc8f3a58c4d343dd47 100755 (executable)
@@ -235,6 +235,6 @@ do
 
 done
 
-total=`expr $ok + $fail`
+total=`expr $ok + $fail + $timeout`
 
 echo "out of $total ok:$ok failed:$fail timeout:$timeout"