Commit 3ad30ff7 by Serge Hallyn Committed by Stéphane Graber

lxc-test-unpriv: test lxc-clone -s

This would have caught a regression in Ubuntu's 3.16 kernel. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 8873e65e
...@@ -33,7 +33,8 @@ DONE=0 ...@@ -33,7 +33,8 @@ DONE=0
cleanup() { cleanup() {
cd / cd /
run_cmd lxc-stop -n c1 -k run_cmd lxc-stop -n c2 -k || true
run_cmd lxc-stop -n c1 -k || true
pkill -u $(id -u $TUSER) -9 pkill -u $(id -u $TUSER) -9
sed -i '/lxcunpriv/d' /run/lxc/nics /etc/lxc/lxc-usernet sed -i '/lxcunpriv/d' /run/lxc/nics /etc/lxc/lxc-usernet
...@@ -122,4 +123,12 @@ p1=$(run_cmd lxc-info -n c1 -p -H) ...@@ -122,4 +123,12 @@ 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-clone -s -o c1 -n c2
run_cmd lxc-start -n c2 -d
p1=$(run_cmd lxc-info -n c2 -p -H)
[ "$p1" != "-1" ] || { echo "Failed to start container c2"; false; }
run_cmd lxc-stop -n c2
DONE=1 DONE=1
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