[Bf-blender-cvs] [02ccc371444] blender-v2.90-release: Correct recent fix for Cycles motion blur test

Sergey Sharybin noreply at git.blender.org
Wed Aug 5 13:00:05 CEST 2020


Commit: 02ccc371444cb51525a4184ae6d70301458fad0d
Author: Sergey Sharybin
Date:   Wed Aug 5 12:59:28 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB02ccc371444cb51525a4184ae6d70301458fad0d

Correct recent fix for Cycles motion blur test

Need to only compare directory name, not the whole path.

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

M	tests/python/cycles_render_tests.py

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

diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index b2f0be2895f..bdf4283eb3e 100644
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -7,6 +7,7 @@ import shlex
 import shutil
 import subprocess
 import sys
+from pathlib import Path
 
 
 def get_arguments(filepath, output_filepath):
@@ -65,7 +66,8 @@ def main():
     report.set_compare_engines('cycles', 'eevee')
 
     # Increase threshold for motion blur, see T78777.
-    if test_dir == 'motion_blur':
+    test_dir_name = Path(test_dir).name
+    if test_dir_name == 'motion_blur':
         report.set_fail_threshold(0.032)
 
     ok = report.run(test_dir, blender, get_arguments, batch=True)



More information about the Bf-blender-cvs mailing list