summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2015-04-03 03:39:36 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2015-05-26 23:58:06 +0200
commitd0bd7f2ac785468ee99e24a0e7b37420e5a242e8 (patch)
tree1c1b8d5f126bed97b9b67fd5fe32308fc172f6c8 /tools/testing
parentselftests/timers: Make git ignore all binaries in timers test suite (diff)
downloadlinux-d0bd7f2ac785468ee99e24a0e7b37420e5a242e8.tar.xz
linux-d0bd7f2ac785468ee99e24a0e7b37420e5a242e8.zip
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')
-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: