aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2015-04-02 21:39:36 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2015-05-26 17:58:06 -0400
commitd0bd7f2ac785468ee99e24a0e7b37420e5a242e8 (patch)
tree1c1b8d5f126bed97b9b67fd5fe32308fc172f6c8
parent78000efe6fc9969fbf4827aaf2373392e20b4356 (diff)
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>
-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
9include ../lib.mk 9include ../lib.mk
10 10
11TEST_PROGS := unprivileged-remount-test 11TEST_PROGS := unprivileged-remount-test
12override RUN_TESTS := if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; fi 12override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
13 then \
14 ./unprivileged-remount-test ; \
15 else \
16 echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
17 fi
13override EMIT_TESTS := echo "$(RUN_TESTS)" 18override EMIT_TESTS := echo "$(RUN_TESTS)"
14 19
15clean: 20clean: