]> granicus.if.org Git - zfs/commitdiff
Fix typos in tests/
authorAndrea Gelmini <andrea.gelmini@gelma.net>
Tue, 3 Sep 2019 01:12:01 +0000 (03:12 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Sep 2019 01:12:01 +0000 (18:12 -0700)
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 #9247

15 files changed:
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add.kshlib
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create.shlib
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_005_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_016_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_events/zpool_events_clear.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_history/zpool_history_001_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_import/import_rewind_config_changed.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_missing_002_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/zpool_labelclear_active.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/zpool_labelclear_exported.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zpool_upgrade_007_pos.ksh
tests/zfs-tests/tests/functional/cli_user/misc/setup.ksh
tests/zfs-tests/tests/functional/cli_user/misc/zpool_online_001_neg.ksh
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_005_pos.ksh
tests/zfs-tests/tests/functional/cli_user/zpool_status/zpool_status_003_pos.ksh

index f80a2a864e4318d095f00be0f2049962374c6c49..94615ee3a0b529466c16ea4c7a973c68be6c92c1 100644 (file)
@@ -90,7 +90,7 @@ function find_mnttab_dev
 }
 
 #
-# Save the systme current dump device configuration
+# Save the system current dump device configuration
 #
 function save_dump_dev
 {
index 9e68748320669f0214a278156da1d1a64b0c4c15..3f3f4472990d5524dbda797aaa0ba34086a138f4 100644 (file)
@@ -146,7 +146,7 @@ function find_vfstab_dev
 }
 
 #
-# Save the systme current dump device configuration
+# Save the system current dump device configuration
 #
 function save_dump_dev
 {
index 2afbec37dca9bf6e30c16cf92dd0b58f8e5efcb2..de5e9d8e79c3d3b9076d7955bff005e2482b5783 100755 (executable)
@@ -95,7 +95,7 @@ do
                log_must zpool create $opt $TESTPOOL ${pooltype[i]} \
                        $file.1 $file.2 $file.3
                ! poolexists $TESTPOOL && \
-                       log_fail "Createing pool with $opt fails."
+                       log_fail "Creating pool with $opt fails."
                mpt=`zfs mount | egrep "^$TESTPOOL[^/]" | awk '{print $2}'`
                (( ${#mpt} == 0 )) && \
                        log_fail "$TESTPOOL created with $opt is not mounted."
@@ -105,12 +105,12 @@ do
                                from the output of zfs mount"
                if [[ "$opt" == "-m $TESTDIR1" ]]; then
                        [[ ! -d $TESTDIR1 ]] && \
-                               log_fail "$TESTDIR1 is not created auotmatically."
+                               log_fail "$TESTDIR1 is not created automatically."
                        [[ "$mpt" != "$TESTDIR1" ]] && \
                                log_fail "$TESTPOOL is not mounted on $TESTDIR1."
                elif [[ "$opt" == "-R $TESTDIR1" ]]; then
                        [[ ! -d $TESTDIR1/$TESTPOOL ]] && \
-                               log_fail "$TESTDIR1/$TESTPOOL is not created auotmatically."
+                               log_fail "$TESTDIR1/$TESTPOOL is not created automatically."
                        [[ "$mpt" != "$TESTDIR1/$TESTPOOL" ]] && \
                                log_fail "$TESTPOOL is not mounted on $TESTDIR1/$TESTPOOL."
                else
index 3fca607b1f46e3927342aa10956bb6be329f0002..cbb5806d9af6c7727d2f70df9ccbda53a86d855e 100755 (executable)
@@ -41,7 +41,7 @@
 # STRATEGY:
 # 1. delete all devices in the swap
 # 2. create a zpool
-# 3. Verify the creation is successed.
+# 3. Verify the creation was successful
 #
 
 verify_runnable "global"
index ab862354b81008e33c31bdf32d52790ec0755e7f..67038a4743d82ba66358dbb152495e841cf178bd 100755 (executable)
@@ -34,7 +34,7 @@ log_assert "'zpool events -c' should successfully clear events."
 # 1. Clear all ZFS events
 # This is needed because we may already over the max number or events queued
 # (zfs_zevent_len_max) generated by previous tests: generating $EVENTS_NUM new
-# events and then counting them is racy and leads to failues, so start from 0.
+# events and then counting them is racy and leads to failures, so start from 0.
 log_must zpool events -c
 
 # 2. Generate some new ZFS events
index dd1be14a066bdf80ffae238eea1f8d5413de36c8..a2b73182bf4c91e9b591836ed804ac814cf757b6 100755 (executable)
@@ -38,7 +38,7 @@
 #
 # STRATEGY:
 #      1. Create pool, volume & snap
-#      2. Verify 'zpool history' can cope with incorret arguments.
+#      2. Verify 'zpool history' can cope with incorrect arguments.
 #
 
 verify_runnable "global"
index e8f3937609d12469d8aaf629fb02ec4b6ff25186..f42ba10d65c49bdd2a6825cbb40e99d8ee0be118 100755 (executable)
@@ -115,7 +115,7 @@ function test_common
        # further than the time that we took the checkpoint.
        #
        # Note that, ideally we would want to take a checkpoint
-       # right after we recond the txg we plan to rewind to.
+       # right after we record the txg we plan to rewind to.
        # But since we can't attach, detach or remove devices
        # while having a checkpoint, we take it after the
        # operation that changes the config.
index 7534ebca87fe9ceecefba4d469ba25575a5c7b79..c6d2637074fefc7028d53927b0d112b54de01cce 100755 (executable)
@@ -54,7 +54,7 @@
 #      3. Export the test pool.
 #      4. Move one or more device files to other directory
 #      5. Verify 'zpool import -d' with the new directory
-#         will handle moved files successfullly.
+#         will handle moved files successfully.
 #         Using the various combinations.
 #              - Regular import
 #              - Alternate Root Specified
index dcca2e9335d669e8e56997c594105230dc912f1a..b63d55d7ad6452d7f29956ed987d57dada0ffa66 100755 (executable)
@@ -24,8 +24,8 @@
 # STRATEGY:
 # 1. Create the pool with log device.
 # 2. Try clearing the label on data and log devices.
-# 3. Add auxilary (cache/spare) vdevs.
-# 4. Try clearing the label on auxilary vdevs.
+# 3. Add auxiliary (cache/spare) vdevs.
+# 4. Try clearing the label on auxiliary vdevs.
 # 5. Check that zpool labelclear will return non-zero and
 #    labels are intact.
 
index a5131bdbb78b9a432e3ea08ff4a98a6c1be96f49..72a555bebe07ddb85178a3803f313d595f02c0f6 100755 (executable)
@@ -26,8 +26,8 @@
 # 2. Export the pool.
 # 3. Check that zpool labelclear returns non-zero when trying to
 #    clear the label on ACTIVE vdevs, and succeeds with -f.
-# 4. Add auxilary vdevs (cache/spare).
-# 5. Check that zpool labelclear succeeds on auxilary vdevs of
+# 4. Add auxiliary vdevs (cache/spare).
+# 5. Check that zpool labelclear succeeds on auxiliary vdevs of
 #    exported pool.
 
 verify_runnable "global"
@@ -44,7 +44,7 @@ log_assert "zpool labelclear will fail on ACTIVE vdevs of exported pool and" \
 for vdevtype in "" "cache" "spare"; do
        # Create simple pool, skip any mounts
        log_must zpool create -O mountpoint=none -f $TESTPOOL $disk1 log $disk2
-       # Add auxilary vdevs (cache/spare)
+       # Add auxiliary vdevs (cache/spare)
        if [[ -n $vdevtype ]]; then
                log_must zpool add $TESTPOOL $vdevtype $disk3
        fi
@@ -63,7 +63,7 @@ for vdevtype in "" "cache" "spare"; do
        log_must zpool labelclear -f $disk2
        log_mustnot zdb -lq $disk2
 
-       # Check that labelclear on auxilary vdevs will succeed
+       # Check that labelclear on auxiliary vdevs will succeed
        if [[ -n $vdevtype ]]; then
                log_must zpool labelclear $disk3
                log_mustnot zdb -lq $disk3
index adc1ba47fcc1fe0c4147fe42490fd5f082ad7ed4..696c8c66cc1c8e3c6a0d3aba0daa80338de8e460 100755 (executable)
@@ -42,7 +42,7 @@
 #
 # STRATEGY:
 # 1. Import pools of all versions
-# 2. Setup a test enviorment over the old pools.
+# 2. Setup a test environment over the old pools.
 # 3. Verify the commands related to 'zfs upgrade' succeed as expected.
 #
 
index bcf6a2296d5757f4ace58d5b0872afb2ee307b47..fc0ebde10025b29c65eb2d860db5499d279c40b8 100755 (executable)
@@ -34,7 +34,7 @@
 
 # This setup script is moderately complex, as it creates scenarios for all
 # of the tests included in this directory. Usually we'd want each test case
-# to setup/teardown it's own configuration, but this would be time consuming
+# to setup/teardown its own configuration, but this would be time consuming
 # given the nature of these tests. However, as a side-effect, one test
 # leaving the system in an unknown state could impact other test cases.
 
index b89cf07ac1839e5a809e7dcc9a8ed6ba5a2c9603..cd290515357f9d50745d919df19d49969aeda124 100755 (executable)
@@ -49,7 +49,7 @@ function check_for_online
                 | grep ONLINE )
        if [ -n "$RESULT" ]
        then
-               log_fail "A disk was brough online!"
+               log_fail "A disk was brought online!"
        fi
 }
 
index 1ae91c1a84344c37aa62ea7666864672e0cabac5..53652ec11b5a3225afed5ba45e8f78a36126a95f 100755 (executable)
@@ -68,7 +68,7 @@ for i in $files ; do
        test_zpool_script "$i" "$testpool" "zpool iostat -Pv -c"
 done
 
-# Test that we can run multiple scripts separated with a commma by running
+# Test that we can run multiple scripts separated with a comma by running
 # all the scripts in a single -c line.
 allscripts="$(echo $scripts | sed -r 's/[[:blank:]]+/,/g')"
 test_zpool_script "$allscripts" "$testpool" "zpool iostat -Pv -c"
index c5e0c6e474a5fa9abd1b74414f85d22135530f18..fa7d3f3f2d56fb6b88656644d30b525935e78555 100755 (executable)
@@ -68,7 +68,7 @@ for i in $files ; do
        test_zpool_script "$i" "$testpool" "zpool status -P -c"
 done
 
-# Test that we can run multiple scripts separated with a commma by running
+# Test that we can run multiple scripts separated with a comma by running
 # all the scripts in a single -c line.
 allscripts="$(echo $scripts | sed -r 's/[[:blank:]]+/,/g')"
 test_zpool_script "$allscripts" "$testpool" "zpool status -P -c"