Commit b771c88b authored by Ben Boeckel's avatar Ben Boeckel
Browse files

BatchAxesGrid: don't write the screenshot outside the tempdir

parent 8b9d29c0
......@@ -70,7 +70,7 @@ smtesting.ProcessCommandLineArguments()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
imageFile = os.path.splitext(os.path.basename(smtesting.StateXMLFileName))[0]
SaveScreenshot('%s/../../%s.png' % (smtesting.TempDir, imageFile))
SaveScreenshot('%s/%s.png' % (smtesting.TempDir, imageFile))
if not smtesting.DoRegressionTesting(renderView1.SMProxy):
raise smtesting.TestError('Test failed')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment