Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: testing/tools/gold.py

Issue 2629943002: Ensures that the gold output directory exists (Closed)
Patch Set: Fixed bug for failing pdfium_test runs Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/tools/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/tools/gold.py
diff --git a/testing/tools/gold.py b/testing/tools/gold.py
index fda63b6debb998f31c47e81702d697bd787a8c2c..7598caffdc361c307e1898871dc654becf6fb88e 100644
--- a/testing/tools/gold.py
+++ b/testing/tools/gold.py
@@ -67,6 +67,10 @@ class GoldResults(object):
self._results = []
self._outputDir = outputDir
+ # make sure the output directory exists.
+ if not os.path.exists(outputDir):
+ os.makedirs(outputDir)
+
def AddTestResult(self, testName, md5Hash, outputImagePath):
# Copy the image to <output_dir>/<md5Hash>.<image_extension>
imgExt = os.path.splitext(outputImagePath)[1].lstrip(".")
« no previous file with comments | « no previous file | testing/tools/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698