ZTS: Add an is_dilos function for future ZTS updates

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Igor Kozhukhov <igor@dilos.org>
Closes #9960
This commit is contained in:
Igor K 2020-02-07 23:32:52 +03:00 committed by GitHub
parent 9825e7ad1d
commit 818d4a87fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -119,6 +119,21 @@ function is_freebsd
fi 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 # Determine if this is a 32-bit system
# #
# Return 0 if platform is 32-bit, 1 if otherwise # Return 0 if platform is 32-bit, 1 if otherwise