All of lore.kernel.org
 help / color / mirror / Atom feed
* [OSSTEST PATCH 1/3] ts-livepatch-run: Treat (just) falseish from OutputCheck as fail
@ 2019-01-16 11:36 Ian Jackson
  2019-01-16 11:36 ` [OSSTEST PATCH 2/3] ts-livepatch-run: Print a message about expected failures Ian Jackson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ian Jackson @ 2019-01-16 11:36 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Konrad Rzeszutek Wilk

This is more idiomatic.  All existing OutputChecks return booleans, so
no functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 ts-livepatch-run | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ts-livepatch-run b/ts-livepatch-run
index f1194586..8fdb8004 100755
--- a/ts-livepatch-run
+++ b/ts-livepatch-run
@@ -147,8 +147,8 @@ sub livepatch_test () {
         }
         if (defined($test->{OutputCheck})) {
             $_ = $output;
-            $rc=$test->{OutputCheck}->();
-            if ($rc ne 1) {
+            my $ok = $test->{OutputCheck}->();
+            if (!$ok) {
                 die "FAILED! OutputCheck=$test->{OutputCheck}, input=$output\n";
             }
         }
-- 
2.11.0


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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-16 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 11:36 [OSSTEST PATCH 1/3] ts-livepatch-run: Treat (just) falseish from OutputCheck as fail Ian Jackson
2019-01-16 11:36 ` [OSSTEST PATCH 2/3] ts-livepatch-run: Print a message about expected failures Ian Jackson
2019-01-16 16:37   ` Konrad Rzeszutek Wilk
2019-01-16 11:36 ` [OSSTEST PATCH 3/3] ts-livepatch-run: Fix erroneous $$ in double-check Ian Jackson
2019-01-16 16:37   ` Konrad Rzeszutek Wilk
2019-01-16 16:36 ` [OSSTEST PATCH 1/3] ts-livepatch-run: Treat (just) falseish from OutputCheck as fail Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.