The script fragment contains a reference to $delay which is a perl
variable, not a variable in the script fragment. We therefore need to
not ''-quote the script.
Without this, the ssh method will often fail spuriously: the exiting
parent (which will signal success back to the osstest controller)
races with the attempt to reboot.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
my $delay = 5;
- target_cmd_root($mo->{Host}, <<'END', 60);
+ target_cmd_root($mo->{Host}, <<END, 60);
set -e
type reboot
exec >>/var/log/osstest-reboot.log