diff options
author | Zhang Zhen <zhenzhang.zhang@huawei.com> | 2015-04-03 01:39:36 (GMT) |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-05-26 21:58:06 (GMT) |
commit | d0bd7f2ac785468ee99e24a0e7b37420e5a242e8 (patch) | |
tree | 1c1b8d5f126bed97b9b67fd5fe32308fc172f6c8 | |
parent | 78000efe6fc9969fbf4827aaf2373392e20b4356 (diff) | |
download | linux-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>
-rw-r--r-- | tools/testing/selftests/mount/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile index 95580a9..5e35c9c 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: |