mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 21:38:16 +00:00
test: add mnt_ext_* tests to zdtm.sh
Note that we should only do the ns specific mounting when we are actually in a ns test. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
8adbdbb1e6
commit
a8b7e53b46
10
test/zdtm.sh
10
test/zdtm.sh
@ -204,6 +204,8 @@ generate_test_list()
|
||||
"
|
||||
|
||||
TEST_MNTNS="
|
||||
ns/static/mnt_ext_auto
|
||||
ns/static/mnt_ext_master
|
||||
ns/static/mntns_open
|
||||
ns/static/mntns_link_remap
|
||||
ns/static/mntns_link_ghost
|
||||
@ -560,9 +562,11 @@ start_test()
|
||||
return 1
|
||||
fi
|
||||
|
||||
mount --make-private "$ZDTM_ROOT"
|
||||
umount -l "$ZDTM_ROOT"
|
||||
mount --make-private --bind . $ZDTM_ROOT || return 1
|
||||
if [ -n "$ZDTM_ROOT" ]; then
|
||||
mount --make-private "$ZDTM_ROOT"
|
||||
umount -l "$ZDTM_ROOT"
|
||||
mount --make-private --bind . $ZDTM_ROOT || return 1
|
||||
fi
|
||||
}
|
||||
|
||||
stop_test()
|
||||
|
2
test/zdtm/.gitignore
vendored
2
test/zdtm/.gitignore
vendored
@ -60,6 +60,8 @@
|
||||
/live/static/maps_file_prot
|
||||
/live/static/mem-touch
|
||||
/live/static/mmx00
|
||||
/live/static/mnt_ext_auto
|
||||
/live/static/mnt_ext_master
|
||||
/live/static/mntns_link_ghost
|
||||
/live/static/mntns_link_remap
|
||||
/live/static/mntns_open
|
||||
|
Loading…
x
Reference in New Issue
Block a user