[Bf-blender-cvs] [f9d9bf41f6b] master: Tests: Alembic, log entire command when `abcls` fails

Sybren A. Stüvel noreply at git.blender.org
Fri May 8 15:10:56 CEST 2020


Commit: f9d9bf41f6bf48866b4da0f85782db2f757a2633
Author: Sybren A. Stüvel
Date:   Fri May 8 12:16:44 2020 +0200
Branches: master
https://developer.blender.org/rBf9d9bf41f6bf48866b4da0f85782db2f757a2633

Tests: Alembic, log entire command when `abcls` fails

This makes it easier to manually run the `abcls` when a test fails, aiding
inspection & fixing.

No function changes to actual Blender code.

===================================================================

M	tests/python/alembic_tests.py

===================================================================

diff --git a/tests/python/alembic_tests.py b/tests/python/alembic_tests.py
index 9de1bc06d84..8c0315f1b68 100644
--- a/tests/python/alembic_tests.py
+++ b/tests/python/alembic_tests.py
@@ -76,7 +76,7 @@ class AbstractAlembicTest(AbstractBlenderRunnerTest):
         output = output.replace('\r\n', '\n').replace('\r', '\n')
 
         if proc.returncode:
-            raise AbcPropError('Error %d running abcls:\n%s' % (proc.returncode, output))
+            raise AbcPropError('Error %d running %s:\n%s' % (proc.returncode, ' '.join(command), output))
 
         # Mapping from value type to callable that can convert a string to Python values.
         converters = {



More information about the Bf-blender-cvs mailing list