summaryrefslogtreecommitdiff
path: root/piglit-run.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-run.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-run.py')
-rwxr-xr-xpiglit-run.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/piglit-run.py b/piglit-run.py
index c52e12487..19d2bee7b 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -95,5 +95,20 @@ def main():
profile.run(env)
env.file.close()
+ print "Writing summary file..."
+ results = core.loadTestResults(resultsDir)
+ for testname,result in results.allTestResults().items():
+ if 'info' in result:
+ if len(result['info']) > 4096:
+ result['info'] = result['info'][0:4096]
+ file = open(resultsDir + '/summary', "w")
+ results.write(file)
+ file.close()
+
+ print
+ print 'Thank you for running Piglit!'
+ print 'Summary for submission has been written to ' + resultsDir + '/summary'
+
+
if __name__ == "__main__":
main()