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:
committed by
Pavel Emelyanov
parent
8adbdbb1e6
commit
a8b7e53b46
@@ -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
|
||||||
|
|
||||||
|
if [ -n "$ZDTM_ROOT" ]; then
|
||||||
mount --make-private "$ZDTM_ROOT"
|
mount --make-private "$ZDTM_ROOT"
|
||||||
umount -l "$ZDTM_ROOT"
|
umount -l "$ZDTM_ROOT"
|
||||||
mount --make-private --bind . $ZDTM_ROOT || return 1
|
mount --make-private --bind . $ZDTM_ROOT || return 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_test()
|
stop_test()
|
||||||
|
2
test/zdtm/.gitignore
vendored
2
test/zdtm/.gitignore
vendored
@@ -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
|
||||||
|
Reference in New Issue
Block a user