]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests; Bump wait delay for shutdown to 120s
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Apr 2014 21:12:00 +0000 (17:12 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Apr 2014 21:12:00 +0000 (17:12 -0400)
On very busy boards with slow IO, the shutdown process can take over 60s
as the disk is syncing.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/lxc-test-autostart

index 62fff26087fbb6c561a63d9bbfc56df730ec3463..4aec2bc4838befebdbe2114d4ce49d9963de7d89 100755 (executable)
@@ -73,8 +73,8 @@ lxc-autostart -g lxc-auto-test -r
 lxc-wait -n $CONTAINER_NAME -t 5 -s RUNNING || (echo "Container didn't restart" && exit 1)
 
 # Shut it down
-lxc-autostart -g lxc-auto-test -s
-lxc-wait -n $CONTAINER_NAME -t 60 -s STOPPED || (echo "Container didn't stop" && exit 1)
+lxc-autostart -g lxc-auto-test -s -6 120
+lxc-wait -n $CONTAINER_NAME -t 120 -s STOPPED || (echo "Container didn't stop" && exit 1)
 
 # Kill it
 lxc-autostart -g lxc-auto-test -k