diff options
Diffstat (limited to 'testing/tools/gold.py')
-rw-r--r-- | testing/tools/gold.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/tools/gold.py b/testing/tools/gold.py index fda63b6deb..7598caffdc 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(".") |