From: Ian Jackson Date: Fri, 5 Nov 2021 17:01:04 +0000 (+0000) Subject: TestSupport: sub broken: break out "$msg" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=762e6ca79ad5c15fca89e4485713dfca6de54eb8;p=osstest.git TestSupport: sub broken: break out "$msg" No functional change. Signed-off-by: Ian Jackson --- diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index a0ca694..b17bf08 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -281,8 +281,10 @@ sub broken ($;$) { AND (status='queued' OR status='running' OR status='preparing') END }); - die uc($newst).": $m; ". ($affected>0 ? "marked $flight.$job $newst" - : "($flight.$job not marked $newst)"); + my $msg = uc($newst).": $m; ". + ($affected>0 ? "marked $flight.$job $newst" + : "($flight.$job not marked $newst)"); + die $msg; } sub complete_testid ($) {