Tests: fix 'ctest -j' running multiple tests at once

bl_blendfile_io & bl_blendfile_liblink shared a filename,
which could make these tests fail.
This commit is contained in:
Campbell Barton 2020-12-10 17:16:18 +11:00
parent 2fbf9cb551
commit e21f1136c2
Notes: blender-bot 2023-02-14 06:00:45 +01:00
Referenced by issue #84637, Guardedalloc test failure with ASan enabled builds.
2 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,9 @@ class TestBlendFileSaveLoadBasic(TestHelper):
output_dir = self.args.output_dir
self.ensure_path(output_dir)
output_path = os.path.join(output_dir, "blendfile.blend")
# Take care to keep the name unique so multiple test jobs can run at once.
output_path = os.path.join(output_dir, "blendfile_io.blend")
orig_data = self.blender_data_to_tuple(bpy.data, "orig_data 1")

View File

@ -21,6 +21,7 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper):
output_dir = self.args.output_dir
self.ensure_path(output_dir)
# Take care to keep the name unique so multiple test jobs can run at once.
output_path = os.path.join(output_dir, "blendlib.blend")
bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False)