diff mbox series

[OSSTEST,2/6] ts-logs-capture: Introduce @allguests containing even non-running

Message ID 20200327181526.19412-2-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series [OSSTEST,1/6] TestSupport: export guest_find_lv | expand

Commit Message

Ian Jackson March 27, 2020, 6:15 p.m. UTC
Nothing looks at this yet.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ts-logs-capture | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/ts-logs-capture b/ts-logs-capture
index d16372f2..88b19658 100755
--- a/ts-logs-capture
+++ b/ts-logs-capture
@@ -39,7 +39,7 @@  if (!$ho) {
     exit 0;
 }
 
-our @guests;
+our (@allguests, @guests);
 
 sub find_guests () {
     my $sth= $dbh_tests->prepare(<<END);
@@ -59,12 +59,13 @@  END
 	    1;
 	}) {
 	    logm("cannot find domid: $@");;
-	    next;
 	}
 
-	push @guests, $gho;
+	push @allguests, $gho;
     }
     $sth->finish();
+
+    @guests = grep { defined $_->{Domid} } @allguests;
 }
 
 sub try_fetch_logs ($$) {