aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-09-04 10:31:08 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-09-16 10:40:26 +0200
commit620eed0a3813c1263f39a2e166db1dc35a126e45 (patch)
tree8c7a98f99c6767e9c640663437d1673d28d499c2 /validation
parent0ab867b7423c311dbeb185dac5fd5f16956000bd (diff)
downloadsparse-dev-620eed0a3813c1263f39a2e166db1dc35a126e45.tar.gz
testsuite: better message for pattern nbr checking
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rwxr-xr-xvalidation/test-suite3
1 files changed, 2 insertions, 1 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 5f63a23b..953b7637 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -142,6 +142,8 @@ nbr_patterns()
while read nbr pat; do
n=$(grep -s "$pat" "$ofile" | wc -l)
if [ "$n" -ne "$nbr" ]; then
+ error "test '$ifile' failed"
+ error " Pattern '$pat' expected $nbr times but got $n times"
return 1
fi
done
@@ -271,7 +273,6 @@ do_test()
# verify the 'check-output-pattern-X-times' tags
nbr_patterns "$file" 'check-output-pattern' $file.output.got
if [ "$?" -ne "0" ]; then
- error "Actual output doesn't contain the pattern the expected number."
test_failed=1
fi
fi