Skip to content

Commit

Permalink
ZTS: user_namespace_004.ksh avoid error in cleanup if unsupported
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Seth Troisi <[email protected]>
Closes #16114
  • Loading branch information
sethtroisi authored Apr 22, 2024
1 parent 9b43d7b commit cdae59e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ user_ns_cleanup() {
log_must zfs destroy -r "$TESTPOOL/userns"
}

log_onexit user_ns_cleanup

log_assert "Check zfs zone command handling of non-namespace files"

# Pass if user namespaces are not supported.
Expand All @@ -54,6 +52,8 @@ if [ "$?" -ne "0" ]; then
log_unsupported "Failed to create user namespace"
fi

log_onexit user_ns_cleanup

# Create the baseline datasets.
log_must zfs create -o zoned=on "$TESTPOOL/userns"

Expand Down

0 comments on commit cdae59e

Please sign in to comment.