Skip to content

Commit 9fff09d

Browse files
committed
Mass spelling fixes
Using the program codespell https://github.com/lucasdemarchi/codespell We were able to fix a lot of spelling mistakes in the current docstrings, comments and logged messages. Of course, the entries were verified, and some extra manual corrections were made. Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
1 parent ca37579 commit 9fff09d

File tree

15 files changed

+25
-25
lines changed

15 files changed

+25
-25
lines changed

cgroup/cgroup.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_memory(self):
9494
"""
9595
Memory test
9696
"""
97-
def cleanup(supress=False):
97+
def cleanup(suppress=False):
9898
""" cleanup """
9999
logging.debug("test_memory: Cleanup")
100100
err = ""
@@ -104,7 +104,7 @@ def cleanup(supress=False):
104104
utils.system("swapon -a")
105105

106106
if err:
107-
if supress:
107+
if suppress:
108108
logging.warn("Some parts of cleanup failed%s", err)
109109
else:
110110
raise error.TestFail("Some parts of cleanup failed%s" %
@@ -214,11 +214,11 @@ def cleanup(supress=False):
214214
filled = int(out[-2].split()[1][:-1])
215215
if mem / 2 > 1.5 * filled:
216216
logging.error("test_memory: Limit = %dM, Filled = %dM (+ "
217-
"python overhead upto 1/3 (mem))", mem / 2,
217+
"python overhead up to 1/3 (mem))", mem / 2,
218218
filled)
219219
else:
220220
logging.debug("test_memory: Limit = %dM, Filled = %dM (+ "
221-
"python overhead upto 1/3 (mem))", mem / 2,
221+
"python overhead up to 1/3 (mem))", mem / 2,
222222
filled)
223223
logging.debug("test_memory: Memfill mem only cgroup passed")
224224

@@ -256,11 +256,11 @@ def cleanup(supress=False):
256256
filled = int(out[-2].split()[1][:-1])
257257
if mem / 2 > 1.5 * filled:
258258
logging.error("test_memory: Limit = %dM, Filled = %dM (+ "
259-
"python overhead upto 1/3 (memsw))", mem / 2,
259+
"python overhead up to 1/3 (memsw))", mem / 2,
260260
filled)
261261
else:
262262
logging.debug("test_memory: Limit = %dM, Filled = %dM (+ "
263-
"python overhead upto 1/3 (memsw))", mem / 2,
263+
"python overhead up to 1/3 (memsw))", mem / 2,
264264
filled)
265265
logging.debug("test_memory: Memfill mem + swap cgroup passed")
266266

@@ -274,7 +274,7 @@ def test_cpuset(self):
274274
Cpuset test
275275
1) Initiate CPU load on CPU0, than spread into CPU* - CPU0
276276
"""
277-
def cleanup(supress=False):
277+
def cleanup(suppress=False):
278278
""" cleanup """
279279
logging.debug("test_cpuset: Cleanup")
280280
err = ""
@@ -293,7 +293,7 @@ def cleanup(supress=False):
293293
if item.rm_cgroup(pwd):
294294
err += "\nCan't remove cgroup direcotry"
295295
if err:
296-
if supress:
296+
if suppress:
297297
logging.warn("Some parts of cleanup failed%s", err)
298298
else:
299299
raise error.TestFail("Some parts of cleanup failed%s"
@@ -385,7 +385,7 @@ def test_cpu(self):
385385
tests cpu subsystem.
386386
Currently only smoke and many_cgroups test is written
387387
"""
388-
def cleanup(supress=False):
388+
def cleanup(suppress=False):
389389
""" cleanup """
390390
logging.debug("test_cpu: Cleanup")
391391
err = []
@@ -409,7 +409,7 @@ def cleanup(supress=False):
409409
err += "\nCan't remove Cgroup: %s" % failure_detail
410410

411411
if err:
412-
if supress:
412+
if suppress:
413413
logging.warn("Some parts of cleanup failed%s", err)
414414
else:
415415
raise error.TestFail("Some parts of cleanup failed%s"

compilebench/compilebench.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __format_results(self, output):
5050
('stat compiled tree', TIME, 7, 'stat_compiled_tree'),
5151
)
5252

53-
# intial create total runs 10 avg 149.82 MB/s (user 0.63s sys 0.85s)
53+
# initial create total runs 10 avg 149.82 MB/s (user 0.63s sys 0.85s)
5454
# create total runs 5 avg 27.50 MB/s (user 0.62s sys 0.83s)
5555
# patch total runs 4 avg 15.01 MB/s (user 0.33s sys 0.63s)
5656
# compile total runs 7 avg 41.47 MB/s (user 0.14s sys 0.75s)

ctcs/ctcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ctcs(test.test):
1313
the now extinct VA Linux's manufacturing system it has several hardware
1414
and software stress tests that can be run in parallel. It does have a
1515
control file system that allows testers to specify the sorts of tests that
16-
they want to see executed. It's an excelent stress test for hardware and
16+
they want to see executed. It's an excellent stress test for hardware and
1717
kernel.
1818
1919
@author Manas Kumar Nayak ([email protected]) (original code)

dbt2/pgpool.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ logdir = '/tmp'
5050
#replication_mode = false
5151

5252
# Set this to true if you want to avoid deadlock situations when
53-
# replication is enabled. There will, however, be a noticable performance
53+
# replication is enabled. There will, however, be a noticeable performance
5454
# degration. A workaround is to set this to false and insert a /*STRICT*/
5555
# comment at the beginning of the SQL command.
5656
#replication_strict = true

ffsb/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ the KVM guest for :
2323
(4) use multithreaded workloads to stress the filesystem.
2424
(5) Exert weighted combination of I/O workloads to analyze the I/O performace
2525
for a specific scenario.
26-
(6) Age filesystem according to a specified workload upto a specified limit.
26+
(6) Age filesystem according to a specified workload up to a specified limit.
2727

2828
Since the only interface used for the integration is a FFSB configuration file;
2929
Autotest will be able to run variety of I/O tests on guest as FFSB improves,

ffsb/ffsb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def initialize(self):
4040
def set_ffsb_params(self, usrfl):
4141
"""
4242
This function checks for the user supplied FFSB profile file
43-
and validates it against the availble resources on the
43+
and validates it against the available resources on the
4444
guest - currently only disk space validation is supported
4545
but adjusting the number of threads according to the vcpus
4646
exported by the qemu-kvm also needs to be added.

ffsb/profile.cfg.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ alignio=1
77
[filesystem0]
88
# For KVM Autotest , this will by-default
99
# be / , unless and until the user is absolutely
10-
# sure what is is upto.
10+
# sure what is is up to.
1111
location=/
1212
num_files=2
1313
min_filesize=1G

isic/help

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ ISIC -- IP Stack Integrity Checker
33
Description:
44
ISIC is a suite of utilities to exercise the stability of an IP Stack and its
55
component stacks (TCP, UDP, ICMP et. al.) It generates piles of pseudo random
6-
packets of the target protocol. The packets be given tendancies to conform to.
6+
packets of the target protocol. The packets be given tendencies to conform to.
77
Ie 50% of the packets generated can have IP Options. 25% of the packets can
88
be IP fragments... But the percentages are arbitrary and most of the packet
9-
fields have a configurable tendancy.
9+
fields have a configurable tendency.
1010

1111
The packets are then sent against the target machine to either penetrate its
1212
firewall rules or find bugs in the IP stack.

libvirt_tck/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hypervisor technology, related operating system services and system
66
configuration.
77

88
Thus the libvirt TCK will allow developers, administrators and users
9-
to determine the level of compatability of their platform, and
9+
to determine the level of compatibility of their platform, and
1010
evaluate whether it will meet their needs, and get awareness of any
1111
regressions that may have occurred since a previous test run
1212
"""

libvirt_test_api/env.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ testpci =
206206

207207
# The IP address of migration target machine, the address must be resovled on DNS
208208
target_machine =
209-
# The login name of partner machine, must be root privilage
209+
# The login name of partner machine, must be root privilege
210210
target_user = root
211211
# Corresponding password
212212
target_password =

libvirt_test_api/libvirt_test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_once(self, item=''):
7676
config_files_cfg = os.path.join(self.bindir, 'config_files.cfg')
7777
test_items = self.get_tests_from_cfg(config_files_cfg, item)
7878
if not test_items:
79-
raise error.TestError('No test avaliable for item %s in '
79+
raise error.TestError('No test available for item %s in '
8080
'config_files.cfg' % item)
8181

8282
os.chdir(self.srcdir)

ltp/scan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ char *yytext_ptr;
707707
*
708708
* States:
709709
* SCAN_OUTSIDE
710-
* start-up state, inbetween tests
710+
* start-up state, between tests
711711
* SCAN_RTSKEY valid from SCAN_OUTSIDE
712712
* from rts_keyword_start to _end
713713
* accompanied by lex KEY state.

npb/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ See http://www.nas.nasa.gov/Software/NPB/
2222
# sp.A sp.B sp.C sp.D sp.E sp.S sp.W
2323
# ua.A ua.B ua.C ua.S ua.W
2424
#
25-
# Please refer to npb.py for more infomation about
25+
# Please refer to npb.py for more information about
2626
# the arguments.
2727
job.run_test(url='npb', tests='ep.A ep.B bt.S bt.W')
2828

regression/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def less_or_equal(old, new):
1010

1111
"""
1212
Test regression helper
13-
Accept two directories with keyval files (usualy result directories for a test)
13+
Accept two directories with keyval files (usually result directories for a test)
1414
and compare given fields according to given pattern
1515

1616
### EXAMPLE: ext4 patch queue validation scenario #####

tsc/tsc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_once(self, args = '-t 650'):
3232
## following conditions are met:
3333
## (i) result.exit_status = 1
3434
## (ii) result.stdout ends with 'FAIL'
35-
## (iii) "FAIL" is preceeded by one or more
35+
## (iii) "FAIL" is preceded by one or more
3636
## lines in the following format:
3737
## CPU x - CPU y = <delta>
3838
## Set as a reason the line that contains max abs(delta)

0 commit comments

Comments
 (0)