tests: include: use already-set $UNAME instead of shelling out to uname each time

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-22 22:18:48 +01:00
committed by Brian Behlendorf
parent ff0fc5af12
commit 5c9f744b1a
3 changed files with 93 additions and 79 deletions
+1 -1
View File
@@ -485,7 +485,7 @@ function get_pool_devices #testpool #devdir
typeset devdir=$2
typeset out=""
case $(uname) in
case "$UNAME" in
Linux|FreeBSD)
zpool status -P $testpool | awk -v d="$devdir" '$1 ~ d {sub(d "/", ""); printf("%s ", $1)}'
;;