summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index c04022b3b..969592f7e 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -9,6 +9,12 @@ function ts_skip {
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)"