mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
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>
This commit is contained in:
parent
78000efe6f
commit
d0bd7f2ac7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user