]> xenbits.xensource.com Git - osstest.git/commitdiff
reporting: Minor fix to reporting of tasks with no subtask
authorIan Jackson <iwj@xenproject.org>
Wed, 21 Oct 2020 18:22:33 +0000 (19:22 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 22 Oct 2020 16:42:03 +0000 (17:42 +0100)
subtask can be NULL.  If so, do not include it.

This change fixes a warning and a minor cosmetic defect.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
Osstest/Executive.pm

index e3ab1dc33d81ea59d7d11ddb566cdfa7debed525..d95d848dcdb567acdf2bdd3c9e956a574ab510a7 100644 (file)
@@ -427,7 +427,7 @@ sub report_rogue_task_description ($) {
     my $info= "rogue task ";
     $info .= " $arow->{type} $arow->{refkey}";
     $info .= " ($arow->{comment})" if defined $arow->{comment};
-    $info .= " $arow->{subtask}";
+    $info .= " $arow->{subtask}" if defined $arow->{subtask};
     $info .= " (user $arow->{username})";
     return $info;
 }