]> err.no Git - util-linux/commitdiff
tests: enable mtablock test when uid=0 only
authorKarel Zak <kzak@redhat.com>
Tue, 3 Apr 2007 20:19:28 +0000 (22:19 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Apr 2007 20:19:28 +0000 (22:19 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts-mount-mtablock

index a3d075ee2f1370c7dc107bdaf05e2ea22330636c..dc9c8e47896e4401f34d3d2dc212a112102765f7 100755 (executable)
@@ -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