mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 01:26:22 +00:00
Move static and transition into zdtm top. We can't move all the micro tests themselves, as we need to distinguish static from non static (zdtm.py makes additional checks on static ones). Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
21 lines
359 B
Bash
Executable file
21 lines
359 B
Bash
Executable file
#!/bin/bash
|
|
|
|
[ "$1" == "--clean" -o "$1" == "--pre-restore" ] || exit 0
|
|
|
|
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"
|