summaryrefslogtreecommitdiff
path: root/tests/ts/mount
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2009-05-27 15:20:01 +0200
committerKarel Zak <kzak@redhat.com>2009-05-27 15:20:01 +0200
commitb8ab374488069cd7d2b869bd239199cf8c73d366 (patch)
tree7b87cc588fb7a945c6d4f2d6cb3a3e0366605d77 /tests/ts/mount
parent12f33b23490d07bc061129249a1bb82cf8de2f0d (diff)
downloadutil-linux-old-b8ab374488069cd7d2b869bd239199cf8c73d366.tar.gz
tests: don't run some mount tests for non-root users
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/mount')
-rwxr-xr-xtests/ts/mount/noncanonical1
-rwxr-xr-xtests/ts/mount/paths1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ts/mount/noncanonical b/tests/ts/mount/noncanonical
index d9be68be..31149923 100755
--- a/tests/ts/mount/noncanonical
+++ b/tests/ts/mount/noncanonical
@@ -20,6 +20,7 @@ TS_DESC="non canonical path"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_skip_nonroot
[ ! -e "/etc" ] && ts_skip "/etc not such file of directory"
diff --git a/tests/ts/mount/paths b/tests/ts/mount/paths
index 93b44ae9..bb2cabf3 100755
--- a/tests/ts/mount/paths
+++ b/tests/ts/mount/paths
@@ -20,6 +20,7 @@ TS_DESC="basic paths"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_skip_nonroot
$TS_CMD_MOUNT -n -f -v -v -v /dev/dummy /mnt &> $TS_OUTPUT