diff options
author | Karel Zak | 2007-05-16 00:41:14 +0200 |
---|---|---|
committer | Karel Zak | 2007-05-18 13:09:12 +0200 |
commit | 09892fb60a33d010fc56efad8cc7b3d88dd58581 (patch) | |
tree | d09391c6c546b8d15569bfd76f061175d7d35df5 /tests/ts-mount-move | |
parent | tests: fix dependence on blkid (diff) | |
download | kernel-qcow2-util-linux-09892fb60a33d010fc56efad8cc7b3d88dd58581.tar.gz kernel-qcow2-util-linux-09892fb60a33d010fc56efad8cc7b3d88dd58581.tar.xz kernel-qcow2-util-linux-09892fb60a33d010fc56efad8cc7b3d88dd58581.zip |
tests: code refactoring -- new ts_skip_nonroot function
The patch moves "if $UID != 0" test to a new function. That's better
than duplicate the code on many places.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts-mount-move')
-rwxr-xr-x | tests/ts-mount-move | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ts-mount-move b/tests/ts-mount-move index aa253b755..76400b449 100755 --- a/tests/ts-mount-move +++ b/tests/ts-mount-move @@ -11,10 +11,7 @@ TS_COMPONENT="mount" TS_DESC="move " ts_init - -if [ $UID != 0 ]; then - ts_skip "not root permissions" -fi +ts_skip_nonroot touch $TS_OUTPUT |