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:
@@ -20,7 +20,9 @@ class TestBlendFileSaveLoadBasic(TestHelper):
|
|||||||
|
|
||||||
output_dir = self.args.output_dir
|
output_dir = self.args.output_dir
|
||||||
self.ensure_path(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")
|
orig_data = self.blender_data_to_tuple(bpy.data, "orig_data 1")
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper):
|
|||||||
|
|
||||||
output_dir = self.args.output_dir
|
output_dir = self.args.output_dir
|
||||||
self.ensure_path(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")
|
output_path = os.path.join(output_dir, "blendlib.blend")
|
||||||
|
|
||||||
bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False)
|
bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False)
|
||||||
|
Reference in New Issue
Block a user