From 09892fb60a33d010fc56efad8cc7b3d88dd58581 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 16 May 2007 00:41:14 +0200 Subject: 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 --- tests/ts-mount-move | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/ts-mount-move') 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 -- cgit v1.2.3-55-g7522