lxc-test-symlink: Background the containers

parent 6bbb8100
...@@ -29,7 +29,7 @@ testrun() { ...@@ -29,7 +29,7 @@ testrun() {
expected=$1 expected=$1
run=$2 run=$2
pass="pass" pass="pass"
lxc-start -P $lxcpath -n symtest1 -l trace -o $lxcpath/log || pass="fail" lxc-start -d -P $lxcpath -n symtest1 -l trace -o $lxcpath/log || pass="fail"
[ $pass = "pass" ] && lxc-wait -P $lxcpath -n symtest1 -t 10 -s RUNNING || pass="fail" [ $pass = "pass" ] && lxc-wait -P $lxcpath -n symtest1 -t 10 -s RUNNING || pass="fail"
if [ "$pass" != "$expected" ]; then if [ "$pass" != "$expected" ]; then
echo "Test $run: expected $expected but container did not. Start log:" echo "Test $run: expected $expected but container did not. Start log:"
......
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