[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST RFC 13/16] WORKAROUND: Osstest/TestSupport: Make target_reboot works with systemd
On host running with systemd as init, doing `ssh host reboot` will result in ssh returning an error. This patch works around by not waiting for the reboot command to return. Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> --- Osstest/TestSupport.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 2b56c26..40a5c5a 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1318,7 +1318,8 @@ sub host_get_free_memory($) { sub target_reboot ($) { my ($ho) = @_; - target_cmd_root($ho, "init 6"); + # Don't wait for systemd to reap off the socket + target_cmd_root($ho, "init 6 & disown"); target_await_down($ho, $timeout{RebootDown}); await_tcp(get_timeout($ho,'reboot',$timeout{RebootUp}), 5,$ho); } -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |