tests: standardise on no-arg uname with *) case for illumos

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13259
This commit is contained in:
наб
2022-03-04 00:09:08 +01:00
committed by Brian Behlendorf
parent eebfd28e9d
commit bf228f3de0
4 changed files with 21 additions and 73 deletions
+3 -3
View File
@@ -170,8 +170,8 @@ if [ "@UBSAN_ENABLED@" = "yes" ]; then
fi
case $(uname -o) in
GNU/Linux)
case $(uname) in
Linux)
unpack_opts="--sparse -xf"
pack_opts="--sparse -cf"
verbose=" -v"
@@ -209,7 +209,7 @@ FreeBSD)
NEWFS_DEFAULT_FS="ufs"
SLICE_PREFIX="p"
;;
illumos)
*)
export AUTO_SNAP=$(svcs -a | \
awk '/auto-snapshot/ && /online/ { print $3 }')
# finally, if we're running in a local zone