]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts: improve message when TAP based tests fail
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 6 Jul 2020 12:50:54 +0000 (13:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 23:26:55 +0000 (19:26 -0400)
If one of the qtests fails, the TAP driver prints out a message like:

  ERROR - too few tests run (expected 3, got 1)

which fails to tell you which test program failed. This is a critical
ommission when many tests are running in parallel as their output is
interleaved. The improved message is:

  ERROR endianness-test - too few tests run (expected 3, got 1)

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200706125054.2619012-1-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/tap-driver.pl

index 6621a5cd6715f76820b19224b376fcd66dfbf165..b1d3880c5060683d00a4a8fbc7b3a40b6b7bb2d3 100755 (executable)
@@ -217,7 +217,7 @@ sub report ($;$)
 
 sub testsuite_error ($)
 {
-  report "ERROR", "- $_[0]";
+  report "ERROR", "$test_name - $_[0]";
 }
 
 sub handle_tap_result ($)