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:
authorCampbell Barton <ideasman42@gmail.com>2020-12-10 09:16:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-10 09:18:38 +0300
commite21f1136c2dc95ba78b871955e2679b74e42e223 (patch)
tree16dd1889dfbe5bc5f49928db92e02842d3a49484 /tests
parent2fbf9cb55182edd4b04c5e36651627bc3c0448ba (diff)
Tests: fix 'ctest -j' running multiple tests at once
bl_blendfile_io & bl_blendfile_liblink shared a filename, which could make these tests fail.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_blendfile_io.py4
-rw-r--r--tests/python/bl_blendfile_liblink.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/python/bl_blendfile_io.py b/tests/python/bl_blendfile_io.py
index 49814ea5902..2c27b60f34e 100644
--- a/tests/python/bl_blendfile_io.py
+++ b/tests/python/bl_blendfile_io.py
@@ -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")
diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py
index b48deb7bd7b..fc618314216 100644
--- a/tests/python/bl_blendfile_liblink.py
+++ b/tests/python/bl_blendfile_liblink.py
@@ -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)