summaryrefslogtreecommitdiff
path: root/testing/tools/safetynet_image.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tools/safetynet_image.py')
-rw-r--r--testing/tools/safetynet_image.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/tools/safetynet_image.py b/testing/tools/safetynet_image.py
index 28df3c582a..319eeb96be 100644
--- a/testing/tools/safetynet_image.py
+++ b/testing/tools/safetynet_image.py
@@ -52,7 +52,7 @@ class ImageComparison(object):
self.num_workers = num_workers
self.threshold = threshold_fraction * 100
- def Run(self):
+ def Run(self, open_in_browser):
"""Runs the comparison and generates an HTML with the results.
Returns:
@@ -94,7 +94,9 @@ class ImageComparison(object):
f.write('</table>')
f.write('</body></html>')
- webbrowser.open(html_path)
+ if open_in_browser:
+ webbrowser.open(html_path)
+
return 0
def _GenerateDiffs(self):