aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include/libtest.shlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zfs-tests/include/libtest.shlib')
-rw-r--r--tests/zfs-tests/include/libtest.shlib15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index ac9ff6183..bddca368d 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -119,6 +119,21 @@ function is_freebsd
fi
}
+# Determine if this is a DilOS test system
+#
+# Return 0 if platform DilOS, 1 if otherwise
+
+function is_dilos
+{
+ typeset ID=""
+ [[ -f /etc/os-release ]] && . /etc/os-release
+ if [[ $ID == "dilos" ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
# Determine if this is a 32-bit system
#
# Return 0 if platform is 32-bit, 1 if otherwise