summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mount
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2015-04-03 04:39:36 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2015-05-27 00:58:06 +0300
commitd0bd7f2ac785468ee99e24a0e7b37420e5a242e8 (patch)
tree1c1b8d5f126bed97b9b67fd5fe32308fc172f6c8 /tools/testing/selftests/mount
parent78000efe6fc9969fbf4827aaf2373392e20b4356 (diff)
downloadlinux-d0bd7f2ac785468ee99e24a0e7b37420e5a242e8.tar.xz
selftests/mount: output WARN messages when mount test skipped
If /proc/self/uid_map doesn't exist, mount test case exits wthout any warning. Fix it to print a warning that the test is skipped because /proc/self/uid_map doesn't exist. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/mount')
-rw-r--r--tools/testing/selftests/mount/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile
index 95580a97326e..5e35c9c50b72 100644
--- a/tools/testing/selftests/mount/Makefile
+++ b/tools/testing/selftests/mount/Makefile
@@ -9,7 +9,12 @@ unprivileged-remount-test: unprivileged-remount-test.c
include ../lib.mk
TEST_PROGS := unprivileged-remount-test
-override RUN_TESTS := if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; fi
+override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
+ then \
+ ./unprivileged-remount-test ; \
+ else \
+ echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
+ fi
override EMIT_TESTS := echo "$(RUN_TESTS)"
clean: