]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Wait on correct container name
authorLaurence Rowe <l@lrowe.co.uk>
Fri, 5 Jun 2015 18:23:54 +0000 (11:23 -0700)
committerLaurence Rowe <laurence@lrowe.co.uk>
Mon, 8 Jun 2015 21:43:24 +0000 (14:43 -0700)
Signed-off-by: Laurence Rowe <l@lrowe.co.uk>
src/tests/lxc-test-checkpoint-restore

index 181b693baf5fcd2dd36f51930d2ac5e017cbd4f1..4c91339167fa98fa27a329ce76f6e14c57e919ce 100755 (executable)
@@ -45,7 +45,7 @@ sleep 5s
 # The first time this usually fails because CRIU cannot checkpoint things with
 # data on a socket.
 lxc-checkpoint -n $name -v -s -D /tmp/checkpoint || FAIL "failed checkpointing"
-lxc-wait -n u1 -s STOPPED
+lxc-wait -n $name -s STOPPED
 lxc-checkpoint -n $name -v -r -D /tmp/checkpoint || FAIL "failed restoring"
 
 lxc-stop -n $name -t 1