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-27 00:49:30 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-02-27 00:49:30 +0300
commitf228a08d027ef700344d35f1ba958249afa93222 (patch)
treefc6c60d89f911bcb0c5019e2e6e4243e49cba9af /tests
parente94276d4033c72000942a49100e552e800d09e58 (diff)
parent7dd0e36dc4582e57a3f5235f384b5207882c923e (diff)
merge from master
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 [])