mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 11:44:16 +03:00
tests: nonspecific cleanup
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:
@@ -41,7 +41,6 @@
|
||||
# 1. Attempt to share a dataset
|
||||
# 2. Verify the dataset was not shared.
|
||||
#
|
||||
#
|
||||
|
||||
verify_runnable "global"
|
||||
|
||||
@@ -51,17 +50,11 @@ fi
|
||||
|
||||
log_assert "zfs share returns an error when run as a user"
|
||||
|
||||
if is_shared $TESTDIR/unshared
|
||||
then
|
||||
log_fail "$TESTPOOL/$TESTFS/unshared was incorrectly shared initially!"
|
||||
fi
|
||||
log_mustnot is_shared $TESTDIR/unshared
|
||||
|
||||
log_mustnot zfs share $TESTPOOL/$TESTFS/unshared
|
||||
|
||||
# Now verify that the above command didn't actually do anything
|
||||
if is_shared $TESTDIR/unshared
|
||||
then
|
||||
log_fail "$TESTPOOL/$TESTFS/unshared was actually shared!"
|
||||
fi
|
||||
log_mustnot is_shared $TESTDIR/unshared
|
||||
|
||||
log_pass "zfs share returns an error when run as a user"
|
||||
|
||||
@@ -52,17 +52,13 @@ fi
|
||||
log_assert "zfs unshare returns an error when run as a user"
|
||||
|
||||
# verify that the filesystem was shared initially
|
||||
if not_shared $TESTDIR/shared
|
||||
then
|
||||
log_fail "$TESTPOOL/$TESTFS/shared was not shared initially at all!"
|
||||
fi
|
||||
log_mustnot not_shared $TESTDIR/shared
|
||||
log_fail "$TESTPOOL/$TESTFS/shared was not shared initially at all!"
|
||||
|
||||
log_mustnot zfs unshare $TESTPOOL/$TESTFS/shared
|
||||
|
||||
# now verify that the above command didn't do anything
|
||||
if not_shared $TESTDIR/shared
|
||||
then
|
||||
log_fail "$TESTPOOL/$TESTFS/shared was actually unshared!"
|
||||
fi
|
||||
log_mustnot not_shared $TESTDIR/shared
|
||||
log_fail "$TESTPOOL/$TESTFS/shared was actually unshared!"
|
||||
|
||||
log_pass "zfs unshare returns an error when run as a user"
|
||||
|
||||
Reference in New Issue
Block a user