aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Wren Kennedy <[email protected]>2022-09-15 14:14:35 -0600
committerGitHub <[email protected]>2022-09-15 13:14:35 -0700
commitdc2fe24ca22392a589fbafdf15e4c32f42442006 (patch)
treeb6fe873828305a26534027208e256242a746d6bc /tests
parent621a7ebe5818033527d67564e538f1dc0caf5e22 (diff)
ZTS: parameter expansion in zfs_unshare_006_pos
zfs_unshare_006 checks to see if a dataset still has an active SMB share after doing an NFS unshare -a. The test could fail because the check for the SMB share does not expect dashes in a dataset name to be converted to underscores as pathname delimiters are. Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: John Kennedy <[email protected]> Closes #13893
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/include/libtest.shlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index 435dcb81c..d163fc7c8 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -1265,7 +1265,7 @@ function is_shared_smb
datasetexists "$fs" || return
if is_linux; then
- net usershare list | grep -xFq "${fs//\//_}"
+ net usershare list | grep -xFq "${fs//[-\/]/_}"
else
log_note "SMB on $UNAME currently unsupported by the test framework"
return 1