Commit a17d94a5 by Serge Hallyn

lxc-test-unpriv: try to start the container a second time

We have nothing else testing this, and it was a real regression in lp bug 1552355. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 77afbedf
...@@ -125,15 +125,21 @@ run_cmd mkdir -p $HDIR/.cache/lxc ...@@ -125,15 +125,21 @@ run_cmd mkdir -p $HDIR/.cache/lxc
chown -R $TUSER: $HDIR/.cache/lxc chown -R $TUSER: $HDIR/.cache/lxc
run_cmd lxc-create -t download -n c1 -- -d ubuntu -r trusty -a $ARCH run_cmd lxc-create -t download -n c1 -- -d ubuntu -r trusty -a $ARCH
run_cmd lxc-start -n c1 -d
p1=$(run_cmd lxc-info -n c1 -p -H) # Make sure we can start it - twice
[ "$p1" != "-1" ] || { echo "Failed to start container c1"; false; }
run_cmd lxc-info -n c1 for count in `seq 1 2`; do
run_cmd lxc-attach -n c1 -- /bin/true run_cmd lxc-start -n c1 -d
p1=$(run_cmd lxc-info -n c1 -p -H)
[ "$p1" != "-1" ] || { echo "Failed to start container c1 (run $count)"; false; }
run_cmd lxc-info -n c1
run_cmd lxc-attach -n c1 -- /bin/true
run_cmd lxc-stop -n c1
done
run_cmd lxc-stop -n c1
run_cmd lxc-copy -s -n c1 -N c2 run_cmd lxc-copy -s -n 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)
......
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