tests: Kill containers (don't wait for shutdown)

We waste a lot of time waiting for Ubuntu containers to cleanly stop right before we destroy them anyway. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 9ab76a7c
...@@ -168,13 +168,13 @@ p1=$(run_cmd lxc-info -n c1 -p -H) ...@@ -168,13 +168,13 @@ p1=$(run_cmd lxc-info -n c1 -p -H)
run_cmd lxc-info -n c1 run_cmd lxc-info -n c1
run_cmd lxc-attach -n c1 -- /bin/true run_cmd lxc-attach -n c1 -- /bin/true
run_cmd lxc-stop -n c1 run_cmd lxc-stop -n c1 -k
run_cmd lxc-clone -s -o c1 -n c2 run_cmd lxc-clone -s -o c1 -n c2
run_cmd lxc-start -n c2 -d run_cmd lxc-start -n c2 -d
p1=$(run_cmd lxc-info -n c2 -p -H) p1=$(run_cmd lxc-info -n c2 -p -H)
[ "$p1" != "-1" ] || { echo "Failed to start container c2"; false; } [ "$p1" != "-1" ] || { echo "Failed to start container c2"; false; }
run_cmd lxc-stop -n c2 run_cmd lxc-stop -n c2 -k
if which cgm >/dev/null 2>&1; then if which cgm >/dev/null 2>&1; then
echo "Testing containers under different cgroups per subsystem" echo "Testing containers under different cgroups per subsystem"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment