diff options
author | Igor K <[email protected]> | 2020-02-07 23:32:52 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-07 12:32:52 -0800 |
commit | 818d4a87fd59ddbacc8ae0c8b67eb1577ca9b069 (patch) | |
tree | aca7210e7aa51eb3e641142e7f1f5ff746be2b33 /tests/zfs-tests/include/libtest.shlib | |
parent | 9825e7ad1d5d8b36cf1afdbc6861bb52269f8317 (diff) |
ZTS: Add an is_dilos function for future ZTS updates
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Igor Kozhukhov <[email protected]>
Closes #9960
Diffstat (limited to 'tests/zfs-tests/include/libtest.shlib')
-rw-r--r-- | tests/zfs-tests/include/libtest.shlib | 15 |
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 |