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.shlib12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index df794418c..d6033bf30 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -92,6 +92,18 @@ function is_linux
fi
}
+# Determine if this is an illumos test system
+#
+# Return 0 if platform illumos, 1 if otherwise
+function is_illumos
+{
+ if [[ $(uname -o) == "illumos" ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
# Determine if this is a FreeBSD test system
#
# Return 0 if platform FreeBSD, 1 if otherwise