]> err.no Git - util-linux/commit
tests: code refactoring -- new ts_skip_nonroot function
authorKarel Zak <kzak@redhat.com>
Tue, 15 May 2007 22:41:14 +0000 (00:41 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 May 2007 11:09:12 +0000 (13:09 +0200)
commit09892fb60a33d010fc56efad8cc7b3d88dd58581
treed09391c6c546b8d15569bfd76f061175d7d35df5
parent0f3e1575554951bd8f6bf0e63a7658d3e293805b
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>
tests/functions.sh
tests/ts-cramfs-mkfs
tests/ts-hwclock-systohc
tests/ts-ipcs-limits
tests/ts-look-separator
tests/ts-mkswap-doit
tests/ts-mount-move
tests/ts-mount-mtablock
tests/ts-mount-remount
tests/ts-mount-special