OSDN Git Service

iotests: Fix "no qualified output" error path
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 Nov 2019 08:03:59 +0000 (09:03 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Nov 2019 16:50:08 +0000 (17:50 +0100)
The variable for error messages to be displayed is $results, not
$reason. Fix 'check' to print the "no qualified output" error message
again instead of having a failure without any message telling the user
why it failed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/check

index 71fe388..90970b0 100755 (executable)
@@ -887,7 +887,7 @@ do
             if [ ! -f "$reference" ]
             then
                 status="fail"
-                reason="no qualified output"
+                results="no qualified output"
                 err=true
             else
                 if diff -w "$reference" $tmp.out >/dev/null 2>&1