summaryrefslogtreecommitdiff
path: root/piglit-summary.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-07-05 08:34:49 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-07-29 12:00:59 -0700
commit2d44382596ed8ab43d59dccaa21ab8d2fe123c21 (patch)
treee7f82ae0a8f88eba71ac5c11de575c3829c31c3b /piglit-summary.py
parente456609d838300bc7541507f92fec7f83a5d5ec1 (diff)
piglit-summary.py: PEP8 compliance
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'piglit-summary.py')
-rwxr-xr-xpiglit-summary.py26
1 files changed, 12 insertions, 14 deletions
diff --git a/piglit-summary.py b/piglit-summary.py
index 99497ef00..79d155408 100755
--- a/piglit-summary.py
+++ b/piglit-summary.py
@@ -44,7 +44,6 @@ def parse_listfile(filename):
return open(filename, "r").read().rstrip().split('\n')
-
def main():
parser = argparse.ArgumentParser()
@@ -52,22 +51,21 @@ def main():
# and then call for only summary
excGroup1 = parser.add_mutually_exclusive_group()
excGroup1.add_argument("-d", "--diff",
- action = "store_true",
- help = "Only display the differences between"
- "multiple result files")
+ action="store_true",
+ help="Only display the differences between multiple"
+ "result files")
excGroup1.add_argument("-s", "--summary",
- action = "store_true",
- help = "Only display the summary, not the"
- "individual test results")
-
+ action="store_true",
+ help="Only display the summary, not the individual "
+ "test results")
parser.add_argument("-l", "--list",
- action = "store",
- help = "Use test results from a list file")
+ action="store",
+ help="Use test results from a list file")
parser.add_argument("results",
- metavar = "<Results Path(s)>",
- nargs = "+",
- help = "Space seperated paths to at least one"
- "results file")
+ metavar="<Results Path(s)>",
+ nargs="+",
+ help="Space seperated paths to at least one results "
+ "file")
args = parser.parse_args()
# Throw an error if -d/--diff is called, but only one results file is