Skip to content

Commit

Permalink
Fix typos in tests/
Browse files Browse the repository at this point in the history
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Closes #9246
  • Loading branch information
Gelma authored and behlendorf committed Sep 3, 2019
1 parent 24739cd commit 220dd4a
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# zfs allow can deal with invalid arguments.(Invalid options or combination)
#
# STRATEGY:
# 1. Verify invalid argumets will cause error.
# 1. Verify invalid arguments will cause error.
# 2. Verify non-optional argument was missing will cause error.
# 3. Verify invalid options cause error.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ do
typeset -i timeout=0
while true; do
if ((timeout == $MAXTIMEOUT)); then
log_fail "Timeout occured"
log_fail "Timeout occurred"
fi
((timeout++))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ for type in "mirror" "raidz" "raidz2" "raidz3"; do
done

# Rinse and repeat, this time faulting both devices at the same time
# NOTE: "raidz" is exluded since it cannot survive 2 faulted devices
# NOTE: "raidz" is excluded since it cannot survive 2 faulted devices
# NOTE: "mirror" is a 4-way mirror here and should survive this test
for type in "mirror" "raidz2" "raidz3"; do
# 1. Create a pool with two hot spares
Expand Down
4 changes: 2 additions & 2 deletions tests/zfs-tests/tests/functional/history/history_005_neg.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
# zpool iostat
#
# STRATEGY:
# 1. Create a test pool.
# 1. Create a test pool
# 2. Separately invoke zpool list|status|iostat
# 3. Verify they was not recored in pool history.
# 3. Verify they were not recorded in pool history
#

verify_runnable "global"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# STRATEGY:
# 1. Create a test pool.
# 2. Separately invoke zfs list|get|holds|mount|unmount|share|unshare|send
# 3. Verify they were not recored in pool history.
# 3. Verify they were not recorded in pool history.
#

verify_runnable "global"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ for arch in "i386" "sparc"; do
TZ=$TIMEZONE zpool history $migratedpoolname | grep -v "^$" \
>$migrated_cmds_f
RET=$?
(( $RET != 0 )) && log_fail "zpool histroy $migratedpoolname fails."
(( $RET != 0 )) && log_fail "zpool history $migratedpoolname fails."

# The migrated history file should differ with original history file on
# two commands -- 'export' and 'import', which are included in migrated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function verify_allow

#
# Here, we determine three things:
# - Whether we're operating on a set or an indivdual permission (which
# - Whether we're operating on a set or an individual permission (which
# dictates the case of the first character in the code)
# - The name of the dataset we're operating on.
# - Whether the operation applies locally or to descendent datasets (or
Expand Down
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/inuse/inuse_001_pos.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dumpdev=`dumpadm | grep "Dump device" | awk '{print $3}'`
[[ -z "$dumpdev" ]] && log_untested "No dump device has been configured"

[[ "$dumpdev" != "$diskslice" ]] && \
log_untested "Dump device has not been been configured to $diskslice"
log_untested "Dump device has not been configured to $diskslice"

log_note "Attempt to zpool the dump device"
unset NOINUSE_CHECK
Expand Down
4 changes: 2 additions & 2 deletions tests/zfs-tests/tests/functional/inuse/inuse_004_pos.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ verify_runnable "global"
function cleanup
{
#
# Essentailly this is the default_cleanup routine but I cannot get it
# to work correctly. So its reproduced below. Still need to full
# Essentially this is the default_cleanup routine but I cannot get it
# to work correctly. So its reproduced below. Still need to fully
# understand why default_cleanup does not work correctly from here.
#
log_must zfs umount $TESTPOOL/$TESTFS
Expand Down
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function verify_assertion #slices
echo "y" | newfs -v $t > /dev/null 2>&1
(( $? !=0 )) && \
log_fail "newfs over exported pool " \
"failes unexpected."
"fails unexpectedly."
done

return 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# STRATEGY:
# 1. largest_file will write to a file and increase its size
# to the maximum allowable.
# 2. The last byte of the file should be accessbile without error.
# 2. The last byte of the file should be accessible without error.
# 3. Writing beyond the maximum file size generates an 'errno' of
# EFBIG.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#
# DESCRIPTION:
# Writing to a file and mmaping that file at the
# Writing to a file and mmapping that file at the
# same time does not result in a deadlock.
#
# STRATEGY:
Expand Down
4 changes: 2 additions & 2 deletions tests/zfs-tests/tests/functional/mmp/mmp_on_uberblocks.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ UBER_CHANGES=$(count_mmp_writes $TESTPOOL 10)
log_note "Uberblock changed $UBER_CHANGES times"

if [ $UBER_CHANGES -lt $MIN_UB_WRITES ]; then
log_fail "Fewer uberblock writes occured than expected ($EXPECTED)"
log_fail "Fewer uberblock writes occurred than expected ($EXPECTED)"
fi

if [ $UBER_CHANGES -gt $MAX_UB_WRITES ]; then
log_fail "More uberblock writes occured than expected ($EXPECTED)"
log_fail "More uberblock writes occurred than expected ($EXPECTED)"
fi

log_must set_tunable64 zfs_multihost_interval $MMP_INTERVAL_MIN
Expand Down
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/no_space/enospc_df.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ log_must zfs umount $TESTPOOL/$TESTFS

# Ensure the pool root filesystem shows in df output.
# If the pool was full (available == 0) and the pool
# root filesytem had very little in it (used < 1 block),
# root filesystem had very little in it (used < 1 block),
# the size reported to df was zero (issue #8253) and
# df skipped the filesystem in its output.
log_must eval "df -h | grep $TESTPOOL"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#
# Strategy:
# 1. Create an origin fs with compression and sha256.
# 2. Clone origin such that it inherits the properies.
# 2. Clone origin such that it inherits the properties.
# 3. Use dd with the sync flag to test the sync write path.
#

Expand Down

0 comments on commit 220dd4a

Please sign in to comment.