Commit 29a688bb authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: don't execute mntns_* tests, if the kernel doesn't show mnt_id

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5a1b5197
......@@ -174,9 +174,6 @@ static/netns
static/cgroup00
static/cgroup01
ns/static/clean_mntns
ns/static/mntns_open
ns/static/mntns_link_remap
ns/static/mntns_link_ghost
"
TEST_CR_KERNEL="
......@@ -184,6 +181,18 @@ ns/static/tun
static/timerfd
"
cat /proc/self/fdinfo/1 | grep -q mnt_id
if [ $? -eq 0 ]; then
TEST_LIST="$TEST_LIST
ns/static/mntns_open
ns/static/mntns_link_remap
ns/static/mntns_link_ghost
"
else
export ZDTM_NOSUBNS=1
fi
TEST_SUID_LIST="
pid00
caps00
......@@ -237,8 +246,6 @@ START_ONLY=0
BATCH_TEST=0
SPECIFIED_NAME_USED=0
cat /proc/self/fdinfo/1 | grep -q mnt_id || export ZDTM_NOSUBNS=1
zdtm_sep()
{ (
set +x
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment