exit 0
}
+function ts_skip_nonroot {
+ if [ $UID != 0 ]; then
+ ts_skip "not root permissions"
+ fi
+}
+
function ts_failed {
if [ x"$1" == x"" ]; then
echo " FAILED ($TS_NAME)"
TS_DESC="mkfs"
ts_init
-
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
+ts_skip_nonroot
set -o pipefail
-
touch $TS_OUTPUT
IMAGE="$TS_OUTDIR/cramfs-loop.img"
NTP_SERVER="0.fedora.pool.ntp.org"
ts_init
+ts_skip_nonroot
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
if [ -x "ntpdate" ]; then
ts_skip "cannot found ntpdate command"
fi
if [ $UID != 0 ]; then
ts_init
- ts_skip "not root permissions"
+ ts_skip_nonroot
fi
. ts-ipcs.sh
ts_init
if [ ! -f "/usr/share/dict/words" ]; then
- ts_ignore "/usr/share/dict/words not such file"
+ ts_skip "/usr/share/dict/words not such file"
fi
touch $TS_OUTPUT
TS_DESC="doit"
ts_init
-
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
+ts_skip_nonroot
set -o pipefail
TS_DESC="move "
ts_init
-
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
+ts_skip_nonroot
touch $TS_OUTPUT
TS_DESC="mtablock"
ts_init
-
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
+ts_skip_nonroot
#
# Be careful with number of processes. Don't forget that there is time limit
TS_DESC="remount"
ts_init
-
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
+ts_skip_nonroot
# clean up
test_cleanup() {
MOUNTER="/sbin/mount.mytest"
ts_init
+ts_skip_nonroot
touch $TS_OUTPUT
-if [ $UID != 0 ]; then
- ts_skip "not root permissions"
-fi
-
cat > $MOUNTER << EOF
#!/bin/bash
# This util-linux-ng regression test component