summaryrefslogtreecommitdiff
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorAmérico Wang <xiyou.wangcong@gmail.com>2008-11-06 15:46:22 +0000
committerKarel Zak <kzak@redhat.com>2008-11-19 13:17:08 +0100
commitf0b561b63207f679881e73a23a2374c08d340086 (patch)
tree26c4d11e732cb4ecb686de18822fb696042cb2b2 /tests/functions.sh
parent7177d32ecfc2c1404e6067a573362af3324840fb (diff)
downloadutil-linux-old-f0b561b63207f679881e73a23a2374c08d340086.tar.gz
tests: clean up the testing scripts
Do some cleanups to the testing scripts. Signed-off-by: WANG Cong <wangcong@zeuux.org>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index a39c98b6..d57d19d8 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -22,14 +22,14 @@ TS_VERBOSE="no"
function ts_skip {
echo " IGNORE ($1)"
- if [ -n "$2" ] && [ -b "$2" ]; then
+ if [ -n "$2" -a -b "$2" ]; then
ts_device_deinit "$2"
fi
exit 0
}
function ts_skip_nonroot {
- if [ $UID != 0 ]; then
+ if [ $UID -ne 0 ]; then
ts_skip "not root permissions"
fi
}