tests: enable mtablock test when uid=0 only

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2007-04-03 22:19:28 +02:00
parent 72a7145496
commit 939a997de0
1 changed files with 6 additions and 1 deletions

View File

@ -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