summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 232cb9bae..6c0ffd948 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -56,6 +56,18 @@ require_acl_()
|| skip_test_ "This test requires a local user named bin."
}
+is_local_dir_()
+{
+ test $# = 1 || framework_failure
+ df --local "$1" >/dev/null 2>&1
+}
+
+require_local_dir_()
+{
+ is_local_dir_ . ||
+ skip_test_ "This test must be run on a local file system."
+}
+
# Skip this test if we're not in SELinux "enforcing" mode.
require_selinux_enforcing_()
{