]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: set clone_children if need be 883/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 8 Mar 2016 21:44:38 +0000 (13:44 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 8 Mar 2016 21:44:38 +0000 (13:44 -0800)
Lxc only sets it on /lxc, not on /.

It's conceivable that we should really re-set this to the original
value, to prevent making later tests not fail when they should.  I
didn't do that.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/tests/lxc-test-apparmor-mount
src/tests/lxc-test-unpriv
src/tests/lxc-test-usernic.in

index 0c5c7cd66616eb96c4e005ad1c355be78d81ad9d..3fd3f5a4e0b476e77826fd9c5dd271b67d222263 100755 (executable)
@@ -131,6 +131,7 @@ elif [ -e /sys/fs/cgroup/cgmanager/sock ]; then
        done
 else
        for d in /sys/fs/cgroup/*; do
+               [ -f $d/cgroup.clone_children ] && echo 1 > $d/cgroup.clone_children
                [ ! -d $d/lxctest ] && mkdir $d/lxctest
                chown -R $TUSER: $d/lxctest
                echo $$ > $d/lxctest/tasks
index bb3660e0475d86fb0b58c5c921ae97e0a89e381d..f3a7910fb0aae87bd6df02b6bd351aa14e9acc34 100755 (executable)
@@ -112,6 +112,7 @@ elif [ -e /sys/fs/cgroup/cgmanager/sock ]; then
        done
 else
        for d in /sys/fs/cgroup/*; do
+               [ -f $d/cgroup.clone_children ] && echo 1 > $d/cgroup.clone_children
                [ ! -d $d/lxctest ] && mkdir $d/lxctest
                chown -R $TUSER: $d/lxctest
                echo $$ > $d/lxctest/tasks
index a38beb9461d40f8a494d1fd952b1ab769f003931..6a5650db912e47a676602ef250ba51a3d2055ba1 100755 (executable)
@@ -104,6 +104,7 @@ elif [ -e /sys/fs/cgroup/cgmanager/sock ]; then
        done
 else
        for d in /sys/fs/cgroup/*; do
+               [ -f $d/cgroup.clone_children ] && echo 1 > $d/cgroup.clone_children
                [ ! -d $d/lxctest ] && mkdir $d/lxctest
                chown -R usernic-user: $d/lxctest
                echo $$ > $d/lxctest/tasks