summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 92f841f94..55d757175 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -322,6 +322,16 @@ fiemap_capable_()
python $abs_srcdir/fiemap-capable "$@"
}
+# Skip the current test if "." lacks d_type support.
+require_dirent_d_type_()
+{
+ python < /dev/null \
+ || skip_test_ python missing: assuming no d_type support
+
+ python $abs_srcdir/d_type-check \
+ || skip_test_ requires d_type support
+}
+
# Does the current (working-dir) file system support sparse files?
require_sparse_support_()
{