Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2017-08-26 02:17:49 +0300
committerRay Molenkamp <github@lazydodo.com>2017-08-26 02:17:49 +0300
commit58d92cefbdf77c0e1b1882a02fabd6627a8f41ee (patch)
treece48467286928059da7531f393c60c042d6fbc47 /tests
parent5121dacf9dc846d26ebb8d02288ae5048c3c98be (diff)
[cycles/ctest] fix failing tests when output folder doesn't exist yet.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/python/cycles_render_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index d4e796f35ae..ba4c04f7cf3 100755
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -154,6 +154,9 @@ class Report:
def output(self):
# write intermediate data for single test
outdir = os.path.join(OUTDIR, self.testname)
+ if not os.path.exists(outdir):
+ os.makedirs(outdir)
+
f = open(os.path.join(outdir, "failed.data"), "w")
f.write(self.failed_tests)
f.close()