From 58d92cefbdf77c0e1b1882a02fabd6627a8f41ee Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Fri, 25 Aug 2017 17:17:49 -0600 Subject: [cycles/ctest] fix failing tests when output folder doesn't exist yet. --- tests/python/cycles_render_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/python') 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() -- cgit v1.2.3