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:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-02-26 02:09:00 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-02-26 14:09:48 +0300
commit8e826caf5e1d1da1e6793ccfdd822a3938b2d7aa (patch)
tree1c31d2045d8963aef081887a3c4cab2edea11e74 /tests
parentc52df4fc7ce4d786ad2abb756aeda3b0b0c986cf (diff)
optimized the output of the collada test script for better reading
Diffstat (limited to 'tests')
-rw-r--r--tests/python/collada/mesh/test_mesh_simple.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/python/collada/mesh/test_mesh_simple.py b/tests/python/collada/mesh/test_mesh_simple.py
index 4ef98fdc6b4..f592160f6aa 100644
--- a/tests/python/collada/mesh/test_mesh_simple.py
+++ b/tests/python/collada/mesh/test_mesh_simple.py
@@ -56,6 +56,8 @@ def with_tempdir(wrapped):
return decorator
+LINE = "+----------------------------------------------------------------"
+
class AbstractColladaTest(unittest.TestCase):
@classmethod
@@ -89,12 +91,19 @@ class AbstractColladaTest(unittest.TestCase):
break
if error:
diff_count +=1
- print ("%s"%line.strip())
+ pline = line.strip()
+ if diff_count == 1:
+ print("\n%s" % LINE)
+ print("|Test has errors:")
+ print(LINE)
+ pre = "reference" if pline[0] == "-" else "generated"
+ print ("| %s:%s"% (pre, pline[1:]))
if diff_count > 0:
- print("Generated file differs from reference")
- print("reference: %s" % reference)
- print("result : %s" % export)
+ print(LINE)
+ print("ref :%s" % reference)
+ print("test:%s" % export)
+ print("%s\n" % LINE)
return diff_count == 0
@@ -134,7 +143,8 @@ class MeshExportTest(AbstractColladaTest):
keep_bind_info=False)
# Now check the resulting Collada file.
- self.assertTrue(self.checkdae(reference_dae, outfile))
+ if not self.checkdae(reference_dae, outfile):
+ self.fail()
if __name__ == '__main__':
sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [])