Kselftests: fix spelling mistakes
Subsystems (10)
cover Kselftests: fix spelling mistakes
Used codespell to detect spelling mistakes across multiple tests and fixed various simple typos found.
---
found/fixed the following typos:
Quoted 1 line
didnt't -> didn't
in tools/testing/selftests/filesystems/statmount/statmount_test.c
Quoted 3 lines
add add -> add
cannnot -> cannot
fowarded -> forwarded
in tools/testing/selftests/net/netfilter/nft_nat.sh
Quoted 1 line
faile -> failed
in tools/testing/selftests/ublk/test_common.sh
Quoted 3 lines
indicies -> indices
requrired -> required
guranteed -> guaranteed
in tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
Quoted 1 line
avaialable -> available
in tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
Quoted 1 line
requries -> requires
in tools/testing/selftests/safesetid/safesetid-test.c
Soham Metha (6):
selftests: filesystems: statmout: fix spelling mistake in output
setftests: net: netfilter: fix spelling mistakes in output
selftests: ublk: fixed spelling mistake in output
selftests: kvm: riscv: fix spelling mistakes in comments
selftests: kvm: s390: fixed spelling mistake in output
selftests: net: tcp_ao: fix spelling mistake in comments
.../filesystems/statmount/statmount_test.c | 2 +- .../testing/selftests/kvm/riscv/sbi_pmu_test.c | 10 +++++----- .../kvm/s390/cpumodel_subfuncs_test.c | 2 +- .../testing/selftests/net/netfilter/nft_nat.sh | 18 +++++++++--------- .../selftests/safesetid/safesetid-test.c | 2 +- tools/testing/selftests/ublk/test_common.sh | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/6 selftests: filesystems: statmout: fix spelling mistake in output
found/fixed the following typo:
- didnt't -> didn't
in tools/testing/selftests/filesystems/statmount/statmount_test.c
--- tools/testing/selftests/filesystems/statmount/statmount_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/filesystems/statmount/statmount_test.c +1 -1
@@ -545,7 +545,7 @@ static void test_statmount_mnt_opts(void)return ; } -ksft_test_result_fail ("didnt't find mount entry\n" ); +ksft_test_result_fail ("didn't find mount entry\n" );free (sm);free (line); }
Signature · 1 line
2.34.1
PATCH 2/6 setftests: net: netfilter: fix spelling mistakes in output
In reply to Soham Methafound/fixed following typos
- add add -> add
- cannnot -> cannot
- fowarded -> forwarded
in tools/testing/selftests/net/netfilter/nft_nat.sh
--- .../testing/selftests/net/netfilter/nft_nat.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
tools/testing/selftests/net/netfilter/nft_nat.sh +9 -9
@@ -164,7 +164,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family dnat hook" + echo "SKIP: Could not add $family dnat hook" return $ksft_skip fi
@@ -239,7 +239,7 @@ EOF test_inet_nat=false return $ksft_skip fi - echo "SKIP: Could not add add $family dnat hook" + echo "SKIP: Could not add $family dnat hook" return $ksft_skip fi
@@ -418,7 +418,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family masquerade hook" + echo "SKIP: Could not add $family masquerade hook" return $ksft_skip fi
@@ -509,7 +509,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family masquerade hook" + echo "SKIP: Could not add $family masquerade hook" return $ksft_skip fi
@@ -569,7 +569,7 @@ test_redirect6() ip netns exec "$ns0" sysctl net.ipv6.conf.all.forwarding=1 > /dev/null if ! ip netns exec "$ns2" ping -q -c 1 dead:1::99 > /dev/null;then - echo "ERROR: cannnot ping $ns1 from $ns2 via ipv6" + echo "ERROR: cannot ping $ns1 from $ns2 via ipv6" lret=1 fi
@@ -598,7 +598,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family redirect hook" + echo "SKIP: Could not add $family redirect hook" return $ksft_skip fi
@@ -673,7 +673,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family redirect hook" + echo "SKIP: Could not add $family redirect hook" return $ksft_skip fi
@@ -844,7 +844,7 @@ table $family nat { } EOF if [ $? -ne 0 ]; then - echo "SKIP: Could not add add $family masquerade hook" + echo "SKIP: Could not add $family masquerade hook" return $ksft_skip fi
@@ -859,7 +859,7 @@ EOF # from router:service bypass connection tracking. test_port_shadow_notrack "$family" - # test nat based mitigation: fowarded packets coming from service port + # test nat based mitigation: forwarded packets coming from service port # are masqueraded with random highport. test_port_shadow_pat "$family"
Signature · 1 line
2.34.1
PATCH 3/6 selftests: ublk: fixed spelling mistake in output
found/fixed following typos
- faile -> failed
in tools/testing/selftests/ublk/test_common.sh
--- tools/testing/selftests/ublk/test_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ublk/test_common.sh +1 -1
@@ -358,7 +358,7 @@ run_io_and_recover() state=$(_recover_ublk_dev -n "$dev_id" "$@") if [ "$state" != "LIVE" ]; then - echo "faile to recover to LIVE($state)" + echo "failed to recover to LIVE($state)" return 255 fi
Signature · 1 line
2.34.1
Re: [PATCH 3/6] selftests: ublk: fixed spelling mistake in output
Quoted 7 lines · Soham Metha
found/fixed following typos
- faile -> failed
in
tools/testing/selftests/ublk/test_common.shSigned-off-by Soham Metha <[email protected]>
Thanks,
Ming
PATCH 4/6 selftests: kvm: riscv: fix spelling mistakes in comments
In reply to Soham Methafound/fixed the following typos
- indicies -> indices
- requrired -> required
- guranteed -> guaranteed
in tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
--- tools/testing/selftests/kvm/riscv/sbi_pmu_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c +5 -5
@@ -212,7 +212,7 @@ static void update_counter_info(int num_counters)for (i =0 ; i < num_counters; i++) { ret =sbi_ecall (SBI_EXT_PMU ,SBI_EXT_PMU_COUNTER_GET_INFO , i,0 ,0 ,0 ,0 ,0 ); -/* There can be gaps in logical counter indicies*/ +/* There can be gaps in logical counter indices*/ if (ret.error)continue ;GUEST_ASSERT_NE (ret.value,0 );
@@ -446,7 +446,7 @@ static void test_pmu_basic_sanity(void) ret =sbi_ecall (SBI_EXT_PMU ,SBI_EXT_PMU_COUNTER_GET_INFO , i,0 ,0 ,0 ,0 ,0 ); -/* There can be gaps in logical counter indicies*/ +/* There can be gaps in logical counter indices*/ if (ret.error)continue ;GUEST_ASSERT_NE (ret.value,0 );
@@ -474,7 +474,7 @@ static void test_pmu_events_snaphost(void)struct riscv_pmu_snapshot_data *snapshot_data = snapshot_gva;int i; -/* Verify presence of SBI PMU and minimum requrired SBI version */ +/* Verify presence of SBI PMU and minimum required SBI version */ verify_sbi_requirement_assert ();snapshot_set_shmem (snapshot_gpa,0 );
@@ -489,7 +489,7 @@ static void test_pmu_events_snaphost(void)if (counter_mask_available & (BIT (i)))GUEST_ASSERT_EQ (READ_ONCE (snapshot_data->ctr_values[i]),0 ); } -/* Only these two events are guranteed to be present */ +/* Only these two events are guaranteed to be present */ test_pmu_event_snapshot (SBI_PMU_HW_CPU_CYCLES );test_pmu_event_snapshot (SBI_PMU_HW_INSTRUCTIONS );
@@ -500,7 +500,7 @@ static void test_pmu_events_overflow(void) {int num_counters =0 , i =0 ; -/* Verify presence of SBI PMU and minimum requrired SBI version */ +/* Verify presence of SBI PMU and minimum required SBI version */ verify_sbi_requirement_assert ();snapshot_set_shmem (snapshot_gpa,0 );
Signature · 1 line
2.34.1
PATCH 5/6 selftests: kvm: s390: fixed spelling mistake in output
In reply to Soham Methafound/fixed the following typo
- avaialable -> available
in tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c
--- tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c +1 -1
@@ -291,7 +291,7 @@ int main(int argc, char *argv[])ksft_test_result_pass ("%s\n" , testlist[idx].subfunc_name);free (array); }else { -ksft_test_result_skip ("%s feature is not avaialable\n" , +ksft_test_result_skip ("%s feature is not available\n" , testlist[idx].subfunc_name); } }
Signature · 1 line
2.34.1
Re: [PATCH 5/6] selftests: kvm: s390: fixed spelling mistake in output
Quoted 8 lines · Soham Metha
found/fixed the following typo
- avaialable -> available
in
tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.cSigned-off-by Soham Metha <[email protected]>---
Signature · 3 lines
Cheers David / dhildenb
PATCH 6/6 selftests: net: tcp_ao: fix spelling mistake in comments
In reply to Soham Methafound/fixed the following typos
- requries -> requires
in tools/testing/selftests/safesetid/safesetid-test.c
--- tools/testing/selftests/safesetid/safesetid-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/safesetid/safesetid-test.c +1 -1
@@ -19,7 +19,7 @@/* * NOTES about this test: -* - requries libcap-dev to be installed on test system +* - requires libcap-dev to be installed on test system * - requires securityfs to me mounted at /sys/kernel/security, e.g.: * mount -n -t securityfs -o nodev,noexec,nosuid securityfs /sys/kernel/security * - needs CONFIG_SECURITYFS and CONFIG_SAFESETID to be enabled
Signature · 1 line
2.34.1
Re: [PATCH 2/6] setftests: net: netfilter: fix spelling mistakes in output
In reply to Soham MethaQuoted 5 lines · Soham Metha
found/fixed following typos
- add add -> add
- cannnot -> cannot
- fowarded -> forwarded
OK, but what tree are you targetting?
In case netdev maintainers or someone else wants to take it:
Else we can route it via nf-next in the coming week.