[Bf-blender-cvs] [a5ac142a31f] master: Temp debug prints for liblink tests to check what happens on windows.
Bastien Montagne
noreply at git.blender.org
Mon Feb 17 21:42:01 CET 2020
Commit: a5ac142a31fbeb203ecf1db478974aecd8c2dadb
Author: Bastien Montagne
Date: Mon Feb 17 21:41:15 2020 +0100
Branches: master
https://developer.blender.org/rBa5ac142a31fbeb203ecf1db478974aecd8c2dadb
Temp debug prints for liblink tests to check what happens on windows.
===================================================================
M tests/python/bl_blendfile_liblink.py
===================================================================
diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py
index 7d93d7c8455..5c96944446a 100644
--- a/tests/python/bl_blendfile_liblink.py
+++ b/tests/python/bl_blendfile_liblink.py
@@ -23,6 +23,7 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper):
self.ensure_path(output_dir)
output_path = os.path.join(output_dir, "blendlib.blend")
+ print("Saving lib blend file to ", output_path)
bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False)
bpy.ops.wm.read_factory_settings()
@@ -31,12 +32,17 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper):
link_dir = os.path.join(output_path, "Mesh")
bpy.ops.wm.link(directory=link_dir, filename="LibMesh")
+ print("Linked lib blend file from ", link_dir)
+ print("lib file path: ", bpy.data.libraries[0].filepath)
+
orig_data = self.blender_data_to_tuple(bpy.data, "orig_data")
output_path = os.path.join(output_dir, "blendfile.blend")
bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False)
+ print("lib file path after saving: ", bpy.data.libraries[0].filepath)
bpy.ops.wm.open_mainfile(filepath=output_path, load_ui=False)
+ print("lib file path after reloading: ", bpy.data.libraries[0].filepath)
read_data = self.blender_data_to_tuple(bpy.data, "read_data")
assert(orig_data == read_data)
More information about the Bf-blender-cvs
mailing list