summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2008-06-12 23:18:21 +0200
committerNicolai Haehnle <nhaehnle@gmail.com>2008-06-12 23:18:21 +0200
commiteb6359d41b1c3e17d2fa03843d49dac026267a42 (patch)
tree581149796a094f5f1515363cc6792c105c9e1e45 /piglit-summary-html.py
parentaa22711bf1658d30cbfc0b81e19b522a827ea35e (diff)
Generate abbreviated results
The results files can get rather huge when tests fail, because tests like glean/blendFunc output a lot of debugging data, which we all record. Now, we generate an additional .../summary file, in which the info string is simply truncated. Pretty stupid, but it should give enough info to get an idea of the rough kind of failure. Add a new option for piglit-summary-html.py, to choose between full or abbreviated info when both are present.
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 80a9a3e99..065d7c487 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -226,6 +226,7 @@ def usage():
Usage: %(progName)s [options] [summary-dir] [test.results]...
Options:
+ -f, --full Prefer the full results over the
-h, --help Show this message
-o, --overwrite Overwrite existing directories
@@ -238,16 +239,19 @@ Example:
def main():
try:
- options, args = getopt(sys.argv[1:], "ho", [ "help", "overwrite" ])
+ options, args = getopt(sys.argv[1:], "hof", [ "help", "overwrite", "full" ])
except GetoptError:
usage()
OptionOverwrite = False
+ OptionPreferSummary = True
for name,value in options:
if name == "-h" or name == "--help":
usage()
elif name == "-o" or name == "--overwrite":
OptionOverwrite = True
+ elif name == "-f" or name == "--full":
+ OptionPreferSummary = False
if len(args) < 2:
usage()
@@ -257,7 +261,7 @@ def main():
core.checkDir(summaryDir, not OptionOverwrite)
- results = [core.loadTestResults(name) for name in resultFilenames]
+ results = [core.loadTestResults(name, OptionPreferSummary) for name in resultFilenames]
summary = framework.summary.Summary(results)
for j in range(len(summary.testruns)):