Skip to content

Commit

Permalink
Mass spelling fixes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lmr committed Sep 6, 2013
1 parent ca37579 commit 9fff09d
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions cgroup/cgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_memory(self):
"""
Memory test
"""
def cleanup(supress=False):
def cleanup(suppress=False):
""" cleanup """
logging.debug("test_memory: Cleanup")
err = ""
Expand All @@ -104,7 +104,7 @@ def cleanup(supress=False):
utils.system("swapon -a")

if err:
if supress:
if suppress:
logging.warn("Some parts of cleanup failed%s", err)
else:
raise error.TestFail("Some parts of cleanup failed%s" %
Expand Down Expand Up @@ -214,11 +214,11 @@ def cleanup(supress=False):
filled = int(out[-2].split()[1][:-1])
if mem / 2 > 1.5 * filled:
logging.error("test_memory: Limit = %dM, Filled = %dM (+ "
"python overhead upto 1/3 (mem))", mem / 2,
"python overhead up to 1/3 (mem))", mem / 2,
filled)
else:
logging.debug("test_memory: Limit = %dM, Filled = %dM (+ "
"python overhead upto 1/3 (mem))", mem / 2,
"python overhead up to 1/3 (mem))", mem / 2,
filled)
logging.debug("test_memory: Memfill mem only cgroup passed")

Expand Down Expand Up @@ -256,11 +256,11 @@ def cleanup(supress=False):
filled = int(out[-2].split()[1][:-1])
if mem / 2 > 1.5 * filled:
logging.error("test_memory: Limit = %dM, Filled = %dM (+ "
"python overhead upto 1/3 (memsw))", mem / 2,
"python overhead up to 1/3 (memsw))", mem / 2,
filled)
else:
logging.debug("test_memory: Limit = %dM, Filled = %dM (+ "
"python overhead upto 1/3 (memsw))", mem / 2,
"python overhead up to 1/3 (memsw))", mem / 2,
filled)
logging.debug("test_memory: Memfill mem + swap cgroup passed")

Expand All @@ -274,7 +274,7 @@ def test_cpuset(self):
Cpuset test
1) Initiate CPU load on CPU0, than spread into CPU* - CPU0
"""
def cleanup(supress=False):
def cleanup(suppress=False):
""" cleanup """
logging.debug("test_cpuset: Cleanup")
err = ""
Expand All @@ -293,7 +293,7 @@ def cleanup(supress=False):
if item.rm_cgroup(pwd):
err += "\nCan't remove cgroup direcotry"
if err:
if supress:
if suppress:
logging.warn("Some parts of cleanup failed%s", err)
else:
raise error.TestFail("Some parts of cleanup failed%s"
Expand Down Expand Up @@ -385,7 +385,7 @@ def test_cpu(self):
tests cpu subsystem.
Currently only smoke and many_cgroups test is written
"""
def cleanup(supress=False):
def cleanup(suppress=False):
""" cleanup """
logging.debug("test_cpu: Cleanup")
err = []
Expand All @@ -409,7 +409,7 @@ def cleanup(supress=False):
err += "\nCan't remove Cgroup: %s" % failure_detail

if err:
if supress:
if suppress:
logging.warn("Some parts of cleanup failed%s", err)
else:
raise error.TestFail("Some parts of cleanup failed%s"
Expand Down
2 changes: 1 addition & 1 deletion compilebench/compilebench.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __format_results(self, output):
('stat compiled tree', TIME, 7, 'stat_compiled_tree'),
)

# intial create total runs 10 avg 149.82 MB/s (user 0.63s sys 0.85s)
# initial create total runs 10 avg 149.82 MB/s (user 0.63s sys 0.85s)
# create total runs 5 avg 27.50 MB/s (user 0.62s sys 0.83s)
# patch total runs 4 avg 15.01 MB/s (user 0.33s sys 0.63s)
# compile total runs 7 avg 41.47 MB/s (user 0.14s sys 0.75s)
Expand Down
2 changes: 1 addition & 1 deletion ctcs/ctcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ctcs(test.test):
the now extinct VA Linux's manufacturing system it has several hardware
and software stress tests that can be run in parallel. It does have a
control file system that allows testers to specify the sorts of tests that
they want to see executed. It's an excelent stress test for hardware and
they want to see executed. It's an excellent stress test for hardware and
kernel.
@author Manas Kumar Nayak ([email protected]) (original code)
Expand Down
2 changes: 1 addition & 1 deletion dbt2/pgpool.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ logdir = '/tmp'
#replication_mode = false

# Set this to true if you want to avoid deadlock situations when
# replication is enabled. There will, however, be a noticable performance
# replication is enabled. There will, however, be a noticeable performance
# degration. A workaround is to set this to false and insert a /*STRICT*/
# comment at the beginning of the SQL command.
#replication_strict = true
Expand Down
2 changes: 1 addition & 1 deletion ffsb/README
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the KVM guest for :
(4) use multithreaded workloads to stress the filesystem.
(5) Exert weighted combination of I/O workloads to analyze the I/O performace
for a specific scenario.
(6) Age filesystem according to a specified workload upto a specified limit.
(6) Age filesystem according to a specified workload up to a specified limit.

Since the only interface used for the integration is a FFSB configuration file;
Autotest will be able to run variety of I/O tests on guest as FFSB improves,
Expand Down
2 changes: 1 addition & 1 deletion ffsb/ffsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def initialize(self):
def set_ffsb_params(self, usrfl):
"""
This function checks for the user supplied FFSB profile file
and validates it against the availble resources on the
and validates it against the available resources on the
guest - currently only disk space validation is supported
but adjusting the number of threads according to the vcpus
exported by the qemu-kvm also needs to be added.
Expand Down
2 changes: 1 addition & 1 deletion ffsb/profile.cfg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ alignio=1
[filesystem0]
# For KVM Autotest , this will by-default
# be / , unless and until the user is absolutely
# sure what is is upto.
# sure what is is up to.
location=/
num_files=2
min_filesize=1G
Expand Down
4 changes: 2 additions & 2 deletions isic/help
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ ISIC -- IP Stack Integrity Checker
Description:
ISIC is a suite of utilities to exercise the stability of an IP Stack and its
component stacks (TCP, UDP, ICMP et. al.) It generates piles of pseudo random
packets of the target protocol. The packets be given tendancies to conform to.
packets of the target protocol. The packets be given tendencies to conform to.
Ie 50% of the packets generated can have IP Options. 25% of the packets can
be IP fragments... But the percentages are arbitrary and most of the packet
fields have a configurable tendancy.
fields have a configurable tendency.

The packets are then sent against the target machine to either penetrate its
firewall rules or find bugs in the IP stack.
Expand Down
2 changes: 1 addition & 1 deletion libvirt_tck/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hypervisor technology, related operating system services and system
configuration.

Thus the libvirt TCK will allow developers, administrators and users
to determine the level of compatability of their platform, and
to determine the level of compatibility of their platform, and
evaluate whether it will meet their needs, and get awareness of any
regressions that may have occurred since a previous test run
"""
Expand Down
2 changes: 1 addition & 1 deletion libvirt_test_api/env.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ testpci =

# The IP address of migration target machine, the address must be resovled on DNS
target_machine =
# The login name of partner machine, must be root privilage
# The login name of partner machine, must be root privilege
target_user = root
# Corresponding password
target_password =
2 changes: 1 addition & 1 deletion libvirt_test_api/libvirt_test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run_once(self, item=''):
config_files_cfg = os.path.join(self.bindir, 'config_files.cfg')
test_items = self.get_tests_from_cfg(config_files_cfg, item)
if not test_items:
raise error.TestError('No test avaliable for item %s in '
raise error.TestError('No test available for item %s in '
'config_files.cfg' % item)

os.chdir(self.srcdir)
Expand Down
2 changes: 1 addition & 1 deletion ltp/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ char *yytext_ptr;
*
* States:
* SCAN_OUTSIDE
* start-up state, inbetween tests
* start-up state, between tests
* SCAN_RTSKEY valid from SCAN_OUTSIDE
* from rts_keyword_start to _end
* accompanied by lex KEY state.
Expand Down
2 changes: 1 addition & 1 deletion npb/control
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ See http://www.nas.nasa.gov/Software/NPB/
# sp.A sp.B sp.C sp.D sp.E sp.S sp.W
# ua.A ua.B ua.C ua.S ua.W
#
# Please refer to npb.py for more infomation about
# Please refer to npb.py for more information about
# the arguments.
job.run_test(url='npb', tests='ep.A ep.B bt.S bt.W')

2 changes: 1 addition & 1 deletion regression/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def less_or_equal(old, new):

"""
Test regression helper
Accept two directories with keyval files (usualy result directories for a test)
Accept two directories with keyval files (usually result directories for a test)
and compare given fields according to given pattern

### EXAMPLE: ext4 patch queue validation scenario #####
Expand Down
2 changes: 1 addition & 1 deletion tsc/tsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run_once(self, args = '-t 650'):
## following conditions are met:
## (i) result.exit_status = 1
## (ii) result.stdout ends with 'FAIL'
## (iii) "FAIL" is preceeded by one or more
## (iii) "FAIL" is preceded by one or more
## lines in the following format:
## CPU x - CPU y = <delta>
## Set as a reason the line that contains max abs(delta)
Expand Down

0 comments on commit 9fff09d

Please sign in to comment.