summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-09-19 10:08:51 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-10-18 13:47:12 +0200
commit832b0c4780ce460efb045f4d97694f8a7470601c (patch)
treec9ce63f1c2dc3421afb11e1b8f4201ccc47a2ef3
parent2ed689c10431b0732e795b9497726d3da8c88f4c (diff)
framework: fix typos in comments
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r--framework/backends/abstract.py2
-rw-r--r--framework/backends/json.py8
-rw-r--r--framework/core.py2
-rw-r--r--framework/grouptools.py2
-rw-r--r--framework/profile.py2
-rw-r--r--framework/results.py2
-rw-r--r--framework/summary/common.py2
7 files changed, 10 insertions, 10 deletions
diff --git a/framework/backends/abstract.py b/framework/backends/abstract.py
index 13a7b6707..85abfa52d 100644
--- a/framework/backends/abstract.py
+++ b/framework/backends/abstract.py
@@ -199,7 +199,7 @@ class FileBackend(Backend):
When this context manager is opened it will first write a placeholder
file with the status incomplete.
- When it is called to write the finall result it will create a temporary
+ When it is called to write the final result it will create a temporary
file, write to that file, then move that file over the original,
incomplete status file. This helps to make the operation atomic, as
long as the filesystem continues running and the result was valid in
diff --git a/framework/backends/json.py b/framework/backends/json.py
index dd08bf053..c810dcaa5 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -83,7 +83,7 @@ class JSONBackend(FileBackend):
This writes out to piglit's native json backend. This class uses the python
json module or the simplejson.
- This class is atomic, writes either completely fail or completley succeed.
+ This class is atomic, writes either completely fail or completely succeed.
To achieve this it writes individual files for each test and for the
metadata, and composes them at the end into a single file and removes the
intermediate files. When it tries to compose these files if it cannot read
@@ -305,9 +305,9 @@ def _resume(results_dir):
def _update_results(results, filepath):
- """ Update results to the lastest version
+ """ Update results to the latest version
- This function is a wraper for other update_* functions, providing
+ This function is a wrapper for other update_* functions, providing
incremental updates from one version to another.
Arguments:
@@ -356,7 +356,7 @@ def _update_results(results, filepath):
def _write(results, file_):
- """WRite the values of the results out to a file."""
+ """Write the values of the results out to a file."""
with write_compressed(file_) as f:
json.dump(results, f, default=piglit_encoder, indent=INDENT)
diff --git a/framework/core.py b/framework/core.py
index 9abc1284c..61643af95 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -220,7 +220,7 @@ class lazy_property(object): # pylint: disable=invalid-name,too-few-public-meth
This works by very cleverly shadowing itself with the calculated value. It
adds the value to the instance, which pushes itself up the MRO and will
- never be quired again.
+ never be queried again.
"""
def __init__(self, func):
diff --git a/framework/grouptools.py b/framework/grouptools.py
index 241cf24db..f28241d3c 100644
--- a/framework/grouptools.py
+++ b/framework/grouptools.py
@@ -119,7 +119,7 @@ def join(first, *args):
small number of joins (2-10) that str concatenation was quite a bit faster,
at around 100 elements list joining became faster. Since most of piglit's
use of join is for 2-10 elements I used string concatentation, which is
- conincedently very similar to the way posixpath.join is implemented.
+ coincidentally very similar to the way posixpath.join is implemented.
"""
# If first happens to be a non-existant value, walk through args until we
diff --git a/framework/profile.py b/framework/profile.py
index 356ec6479..53358868b 100644
--- a/framework/profile.py
+++ b/framework/profile.py
@@ -292,7 +292,7 @@ class TestProfile(object):
"""Method to do pre-run setup."""
def teardown(self):
- """Method to od post-run teardown."""
+ """Method to do post-run teardown."""
def copy(self):
"""Create a copy of the TestProfile.
diff --git a/framework/results.py b/framework/results.py
index 4cfe78250..99dd3735b 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -325,7 +325,7 @@ class TestrunResult(object):
raise e
def calculate_group_totals(self):
- """Calculate the number of pases, fails, etc at each level."""
+ """Calculate the number of passes, fails, etc at each level."""
for name, result in six.iteritems(self.tests):
# If there are subtests treat the test as if it is a group instead
# of a test.
diff --git a/framework/summary/common.py b/framework/summary/common.py
index 8c7e2c78a..5af692703 100644
--- a/framework/summary/common.py
+++ b/framework/summary/common.py
@@ -52,7 +52,7 @@ class Results(object): # pylint: disable=too-few-public-methods
def get_result(self, name):
"""Get all results for a single test.
- Replace any missing vaules with status.NOTRUN, correclty handles
+ Replace any missing vaules with status.NOTRUN, correctly handles
subtests.
"""