From 939a997de0c761d29fb7530976ca20da4898703a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 3 Apr 2007 22:19:28 +0200 Subject: [PATCH] tests: enable mtablock test when uid=0 only Signed-off-by: Karel Zak --- tests/ts-mount-mtablock | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ts-mount-mtablock b/tests/ts-mount-mtablock index a3d075ee..dc9c8e47 100755 --- a/tests/ts-mount-mtablock +++ b/tests/ts-mount-mtablock @@ -6,6 +6,12 @@ TS_COMPONENT="mount" TS_DESC="mtablock" +ts_init + +if [ $UID != 0 ]; then + ts_skip "not root permissions" +fi + # # Be careful with number of processes. Don't forget that there is time limit # when the mount waits on the mtab lock. If you define too much processes some @@ -19,7 +25,6 @@ TS_DESC="mtablock" NLOOPS=1000 NPROCESSES=50 -ts_init > $TS_OUTPUT.debug echo 0 > $TS_OUTPUT -- 2.39.5