From ddbdf07c588df1cf4fd9068d1ceb68a13f56346a Mon Sep 17 00:00:00 2001 From: Jonah Friedman Date: Sun, 16 Feb 2020 07:49:31 -0800 Subject: [PATCH] Added version info (Cryptomatte, Nuke, OS) to test results --- nuke/cryptomatte_utilities_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nuke/cryptomatte_utilities_tests.py b/nuke/cryptomatte_utilities_tests.py index 596f9e5..254adab 100644 --- a/nuke/cryptomatte_utilities_tests.py +++ b/nuke/cryptomatte_utilities_tests.py @@ -1445,7 +1445,10 @@ class or test method. failfast stop after a failure, and skip cleanup of the nodes that were created. """ + import nuke import fnmatch + import platform + import cryptomatte_utilities as cu def find_test_method(traceback): """ Finds first "test*" function in traceback called. """ @@ -1477,6 +1480,10 @@ def find_test_method(traceback): reset_skip_cleanup_on_failure() + print "---------" + print 'Cryptomatte %s, Nuke %s, %s' % (cu.__version__, + nuke.NUKE_VERSION_STRING, + platform.platform()) print "---------" for test_instance, traceback in result.failures: print "Failed: %s.%s" % (type(test_instance).__name__, find_test_method(traceback))