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>
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 $@;
/etc/xen/*
+ /home/osstest/osstest-confirm-booted.log
+
)];
if (!try_fetch_logs($ho, $logs)) {
logm("log fetching failed, trying hard host reboot...");