From 9fff09d04c3906d89e9fb030776e5894a3ec4deb Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Fri, 6 Sep 2013 14:03:15 -0300 Subject: [PATCH] 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 --- cgroup/cgroup.py | 20 ++++++++++---------- compilebench/compilebench.py | 2 +- ctcs/ctcs.py | 2 +- dbt2/pgpool.conf | 2 +- ffsb/README | 2 +- ffsb/ffsb.py | 2 +- ffsb/profile.cfg.sample | 2 +- isic/help | 4 ++-- libvirt_tck/control | 2 +- libvirt_test_api/env.cfg | 2 +- libvirt_test_api/libvirt_test_api.py | 2 +- ltp/scan.c | 2 +- npb/control | 2 +- regression/control | 2 +- tsc/tsc.py | 2 +- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/cgroup/cgroup.py b/cgroup/cgroup.py index fe618861a..76fd8d63b 100755 --- a/cgroup/cgroup.py +++ b/cgroup/cgroup.py @@ -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 = "" @@ -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" % @@ -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") @@ -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") @@ -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 = "" @@ -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" @@ -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 = [] @@ -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" diff --git a/compilebench/compilebench.py b/compilebench/compilebench.py index b3ec2d24d..782abf06a 100644 --- a/compilebench/compilebench.py +++ b/compilebench/compilebench.py @@ -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) diff --git a/ctcs/ctcs.py b/ctcs/ctcs.py index 1df2ea1d2..5ec513558 100644 --- a/ctcs/ctcs.py +++ b/ctcs/ctcs.py @@ -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 (maknayak@in.ibm.com) (original code) diff --git a/dbt2/pgpool.conf b/dbt2/pgpool.conf index d5b2f07c4..92d9a75d6 100644 --- a/dbt2/pgpool.conf +++ b/dbt2/pgpool.conf @@ -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 diff --git a/ffsb/README b/ffsb/README index d2516efb1..788a5a55d 100644 --- a/ffsb/README +++ b/ffsb/README @@ -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, diff --git a/ffsb/ffsb.py b/ffsb/ffsb.py index d249c3722..d48a58567 100644 --- a/ffsb/ffsb.py +++ b/ffsb/ffsb.py @@ -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. diff --git a/ffsb/profile.cfg.sample b/ffsb/profile.cfg.sample index e68fead8a..f6ea33d9e 100644 --- a/ffsb/profile.cfg.sample +++ b/ffsb/profile.cfg.sample @@ -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 diff --git a/isic/help b/isic/help index b573128ce..c5ba4ceca 100644 --- a/isic/help +++ b/isic/help @@ -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. diff --git a/libvirt_tck/control b/libvirt_tck/control index 6d3aac61b..8ebcdf9c5 100644 --- a/libvirt_tck/control +++ b/libvirt_tck/control @@ -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 """ diff --git a/libvirt_test_api/env.cfg b/libvirt_test_api/env.cfg index a16e45bb7..8f964c2bd 100644 --- a/libvirt_test_api/env.cfg +++ b/libvirt_test_api/env.cfg @@ -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 = diff --git a/libvirt_test_api/libvirt_test_api.py b/libvirt_test_api/libvirt_test_api.py index 146f836a5..56cea123f 100644 --- a/libvirt_test_api/libvirt_test_api.py +++ b/libvirt_test_api/libvirt_test_api.py @@ -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) diff --git a/ltp/scan.c b/ltp/scan.c index 819bd17f6..2dc3c84f7 100644 --- a/ltp/scan.c +++ b/ltp/scan.c @@ -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. diff --git a/npb/control b/npb/control index bebd0e984..dd5d1c804 100644 --- a/npb/control +++ b/npb/control @@ -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') diff --git a/regression/control b/regression/control index dd3c2617e..682dd3557 100644 --- a/regression/control +++ b/regression/control @@ -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 ##### diff --git a/tsc/tsc.py b/tsc/tsc.py index 1869eab35..b0154ea52 100644 --- a/tsc/tsc.py +++ b/tsc/tsc.py @@ -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 = ## Set as a reason the line that contains max abs(delta)