mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-02 04:04:24 +03:00
ZTS: Misc fixes for FreeBSD
* Check for mountd in is_shared to avoid timeout when not running * Enhance robustness of some cleanup functions * Simplify atime lookup * Skip sharenfs validation for now * Don't add mountpoint property to inheritance validation on FreeBSD Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10047
This commit is contained in:
@@ -56,11 +56,7 @@ function check_zdb
|
||||
|
||||
function cleanup
|
||||
{
|
||||
if [ -e $TEST_BASE_DIR/zdb_001_neg.$$.txt ]
|
||||
then
|
||||
rm $TEST_BASE_DIR/zdb_001_neg.$$.txt
|
||||
fi
|
||||
|
||||
rm -f $TEST_BASE_DIR/zdb_001_neg.$$.txt $TEST_BASE_DIR/zdb.$$
|
||||
}
|
||||
|
||||
verify_runnable "global"
|
||||
|
||||
@@ -44,10 +44,7 @@
|
||||
|
||||
function cleanup
|
||||
{
|
||||
if [ -e "$TEMPFILE" ]
|
||||
then
|
||||
rm -f "$TEMPFILE"
|
||||
fi
|
||||
rm -f "$TEMPFILE"
|
||||
}
|
||||
|
||||
log_onexit cleanup
|
||||
@@ -55,7 +52,7 @@ log_assert "zfs shows a usage message when run as a user"
|
||||
|
||||
TEMPFILE="$TEST_BASE_DIR/zfs_001_neg.$$.txt"
|
||||
|
||||
eval "zfs > $TEMPFILE 2>&1"
|
||||
zfs > $TEMPFILE 2>&1
|
||||
log_must grep "usage: zfs command args" "$TEMPFILE"
|
||||
|
||||
log_must eval "awk '{if (length(\$0) > 80) exit 1}' < $TEMPFILE"
|
||||
|
||||
Reference in New Issue
Block a user