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 openzfs#16114
  • Loading branch information
sethtroisi authored and lundman committed Sep 4, 2024
1 parent c8633e0 commit 448713b
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 448713b

Please sign in to comment.