diff options
author | Andrei Vagin <avagin@google.com> | 2022-03-21 08:13:45 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-04-29 03:53:52 +0300 |
commit | 805559c1deb6507a0c2ffbe0d4a3d18257322fbd (patch) | |
tree | 33b5a75f1bbb28a52b9e7f5aa6525c2e79b3fab4 /scripts | |
parent | ab6191ccd3d73d983677560e07bbd4c4286fa7f8 (diff) |
scripts/ci: mount test cgroups once
zdtm.py mounts two named controllers for tests. In CI, we run zdtm.py a few
times, so we can mount (create) these controllers once to avoid any unwanted
effects.
Signed-off-by: Andrei Vagin <avagin@google.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/run-ci-tests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/ci/run-ci-tests.sh b/scripts/ci/run-ci-tests.sh index 22420b922..14e6b1224 100755 --- a/scripts/ci/run-ci-tests.sh +++ b/scripts/ci/run-ci-tests.sh @@ -139,6 +139,13 @@ time make unittest ulimit -c unlimited +cgid=$$ +cleanup_cgroup() { + ./test/zdtm_umount_cgroups $cgid +} +trap cleanup_cgroup EXIT +./test/zdtm_mount_cgroups $cgid + echo "|$(pwd)/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern if [ "${COMPAT_TEST}x" = "yx" ] ; then |