diff mbox

[v2,12/14] testsuite: get 'check-known-to-fail' earlier

Message ID 20170212232904.49647-13-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck Feb. 12, 2017, 11:29 p.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 validation/test-suite | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/validation/test-suite b/validation/test-suite
index 852904a4d..fdb7cbc26 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -212,6 +212,10 @@  do_test()
 	$cmd 1> $file.output.got 2> $file.error.got
 	actual_exit_value=$?
 
+	get_tag "check-known-to-fail" $file
+	must_fail=`expr "$?" = 0`
+	known_ko_tests=`expr $known_ko_tests + $must_fail`
+
 	for stream in output error; do
 		grep -s -q "check-$stream-ignore" $file && continue
 
@@ -249,10 +253,6 @@  do_test()
 		test_failed=1
 	fi
 
-	get_tag "check-known-to-fail" $file
-	must_fail=`expr "$?" = 0`
-	known_ko_tests=`expr $known_ko_tests + $must_fail`
-
 	[ "$test_failed" -eq "$must_fail" ] || failed=1
 
 	if [ "$must_fail" -eq "1" ]; then