]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-livepatch-run: Print a message about expected failures
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 16 Jan 2019 11:30:49 +0000 (11:30 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 16 Jan 2019 11:36:07 +0000 (11:36 +0000)
target_cmd_output_root_status prints the command exit status.  If that
was a failure and the failure was as expected, this can be confusing
to readers who do not know that this is a possibility.  So print a
message about it.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
ts-livepatch-run

index 8fdb8004e69cef55e843e156abfd428b5b1baa43..f011e64e885d14f098b9e805fd058bb40a430315 100755 (executable)
@@ -152,6 +152,9 @@ sub livepatch_test () {
                 die "FAILED! OutputCheck=$test->{OutputCheck}, input=$output\n";
             }
         }
+       if ($expected_rc) {
+           logm "... that failure ($rc) was as required; all is well.";
+        }
    }
    return 0;
 }