| 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(".")
|
|
|