[Mesa-dev] [PATCH shader-db 3/3] si-report.py: don't crash if there are no shaders found

Marek Olšák maraeo at gmail.com
Mon Jul 11 18:10:46 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

---
 si-report.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/si-report.py b/si-report.py
index c7fe1b5..69af89e 100755
--- a/si-report.py
+++ b/si-report.py
@@ -366,6 +366,9 @@ def compare_results(before_all_results, after_all_results):
             errors_names.append(name)
 
     print '{} shaders in {} tests'.format(num_shaders, num_tests)
+    if num_shaders == 0:
+        return
+
     print "Totals:"
     print_before_after_stats(total_before, total_after)
     print "Totals from affected shaders:"
-- 
2.7.4



More information about the mesa-dev mailing list