]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
osstest-confirm-booted: Log processes
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 4 Nov 2014 17:35:09 +0000 (17:35 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Nov 2014 16:20:29 +0000 (16:20 +0000)
Run a ps if osstest-confirm-booted does not exist, and stash the
output where we read it during log capture.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Osstest/TestSupport.pm
ts-logs-capture

index f8b531221220f31f1a3a52cbf3181f1eb4096392..45ceee945b7c4cb9dfbaafc91e4678b80a75078f 100644 (file)
@@ -924,9 +924,10 @@ sub host_reboot ($) {
     poll_loop(40,2, 'reboot-confirm-booted', sub {
         my $output;
         if (!eval {
-            $output= target_cmd_output($ho,
-                "stat /dev/shm/osstest-confirm-booted 2>&1 >/dev/null ||:",
-                                       40);
+            $output= target_cmd_output($ho, <<END, 40);
+stat /dev/shm/osstest-confirm-booted 2>&1 >/dev/null \\
+ || ps -efH >osstest-confirm-booted.log
+END
             1;
         }) {
             return $@;
index 3ccfc00b6c5a96555c43932f209fff892eab78f6..21974a98518c838c4099f244335f24c97b83cea9 100755 (executable)
@@ -130,6 +130,8 @@ sub fetch_logs_host_guests () {
 
                   /etc/xen/*
 
+                  /home/osstest/osstest-confirm-booted.log
+
                   )];
     if (!try_fetch_logs($ho, $logs)) {
         logm("log fetching failed, trying hard host reboot...");