From eb6359d41b1c3e17d2fa03843d49dac026267a42 Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Thu, 12 Jun 2008 23:18:21 +0200 Subject: 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. --- piglit-summary-html.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'piglit-summary-html.py') 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)): -- cgit v1.2.3