2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +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:
Tycho Andersen
2015-05-06 08:07:53 -06:00
committed by Pavel Emelyanov
parent 8adbdbb1e6
commit a8b7e53b46
2 changed files with 9 additions and 3 deletions

View File

@@ -204,6 +204,8 @@ generate_test_list()
" "
TEST_MNTNS=" TEST_MNTNS="
ns/static/mnt_ext_auto
ns/static/mnt_ext_master
ns/static/mntns_open ns/static/mntns_open
ns/static/mntns_link_remap ns/static/mntns_link_remap
ns/static/mntns_link_ghost ns/static/mntns_link_ghost
@@ -560,9 +562,11 @@ start_test()
return 1 return 1
fi fi
mount --make-private "$ZDTM_ROOT" if [ -n "$ZDTM_ROOT" ]; then
umount -l "$ZDTM_ROOT" mount --make-private "$ZDTM_ROOT"
mount --make-private --bind . $ZDTM_ROOT || return 1 umount -l "$ZDTM_ROOT"
mount --make-private --bind . $ZDTM_ROOT || return 1
fi
} }
stop_test() stop_test()

View File

@@ -60,6 +60,8 @@
/live/static/maps_file_prot /live/static/maps_file_prot
/live/static/mem-touch /live/static/mem-touch
/live/static/mmx00 /live/static/mmx00
/live/static/mnt_ext_auto
/live/static/mnt_ext_master
/live/static/mntns_link_ghost /live/static/mntns_link_ghost
/live/static/mntns_link_remap /live/static/mntns_link_remap
/live/static/mntns_open /live/static/mntns_open