diff --git a/test/zdtm/live/static/cgroup.hook b/test/zdtm/live/static/cgroup.hook deleted file mode 100755 index f1a31585b..000000000 --- a/test/zdtm/live/static/cgroup.hook +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e - -tname=$(mktemp -d cgclean.XXXXXX) -mount -t cgroup none $tname -o "none,name=zdtmtst" - -echo "Cleaning $tname" - -set +e -rmdir "$tname/subcg/subsubcg/" -rmdir "$tname/subcg/empty.0/" -rmdir "$tname/subcg/empty.1/" -rmdir "$tname/subcg/" -set -e - -echo "Left there is:" -ls "$tname" -umount "$tname" -rmdir "$tname" diff --git a/test/zdtm/live/static/cgroup00.c b/test/zdtm/live/static/cgroup00.c index 9b8c3df15..b590156eb 100644 --- a/test/zdtm/live/static/cgroup00.c +++ b/test/zdtm/live/static/cgroup00.c @@ -13,7 +13,7 @@ const char *test_author = "Pavel Emelianov "; char *dirname; TEST_OPTION(dirname, string, "cgroup directory name", 1); static const char *cgname = "zdtmtst"; -#define SUBNAME "subcg" +#define SUBNAME "subcg00" #define SUBNAME2 SUBNAME"/subsubcg" static int cg_move(char *name) diff --git a/test/zdtm/live/static/cgroup00.hook b/test/zdtm/live/static/cgroup00.hook deleted file mode 120000 index 99dc41111..000000000 --- a/test/zdtm/live/static/cgroup00.hook +++ /dev/null @@ -1 +0,0 @@ -cgroup.hook \ No newline at end of file diff --git a/test/zdtm/live/static/cgroup00.hook b/test/zdtm/live/static/cgroup00.hook new file mode 100755 index 000000000..44ad2dd97 --- /dev/null +++ b/test/zdtm/live/static/cgroup00.hook @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +tname=$(mktemp -d cgclean.XXXXXX) +mount -t cgroup none $tname -o "none,name=zdtmtst" + +echo "Cleaning $tname" + +set +e +rmdir "$tname/subcg00/subsubcg/" +rmdir "$tname/subcg00/" +set -e + +echo "Left there is:" +ls "$tname" +umount "$tname" +rmdir "$tname" diff --git a/test/zdtm/live/static/cgroup01.c b/test/zdtm/live/static/cgroup01.c index 10de6fc64..9868ccaa8 100644 --- a/test/zdtm/live/static/cgroup01.c +++ b/test/zdtm/live/static/cgroup01.c @@ -12,7 +12,7 @@ const char *test_author = "Tycho Andersen "; char *dirname; TEST_OPTION(dirname, string, "cgroup directory name", 1); static const char *cgname = "zdtmtst"; -static const char *subname = "subcg"; +static const char *subname = "subcg01"; static const char *empty = "empty"; int main(int argc, char **argv) diff --git a/test/zdtm/live/static/cgroup01.hook b/test/zdtm/live/static/cgroup01.hook deleted file mode 120000 index 99dc41111..000000000 --- a/test/zdtm/live/static/cgroup01.hook +++ /dev/null @@ -1 +0,0 @@ -cgroup.hook \ No newline at end of file diff --git a/test/zdtm/live/static/cgroup01.hook b/test/zdtm/live/static/cgroup01.hook new file mode 100755 index 000000000..9697e1bc7 --- /dev/null +++ b/test/zdtm/live/static/cgroup01.hook @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +tname=$(mktemp -d cgclean.XXXXXX) +mount -t cgroup none $tname -o "none,name=zdtmtst" + +echo "Cleaning $tname" + +set +e +rmdir "$tname/subcg01/empty.0/" +rmdir "$tname/subcg01/empty.1/" +rmdir "$tname/subcg01/" +set -e + +echo "Left there is:" +ls "$tname" +umount "$tname" +rmdir "$tname"