[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/3] ts-livepatch-run: Print a message about expected failures



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@xxxxxxxxxxxxx>
CC: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
 ts-livepatch-run | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ts-livepatch-run b/ts-livepatch-run
index 8fdb8004..f011e64e 100755
--- a/ts-livepatch-run
+++ b/ts-livepatch-run
@@ -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;
 }
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.