diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index c7e12dd5b7c..1d30a696e98 100644 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -85,6 +85,10 @@ def get_arguments(filepath, output_filepath): if custom_args: args.extend(shlex.split(custom_args)) + spp_multiplier = os.getenv('CYCLESTEST_SPP_MULTIPLIER') + if spp_multiplier: + args.extend(["--python-expr", f"import bpy; bpy.context.scene.cycles.samples *= {spp_multiplier}"]) + if subject == 'bake': args.extend(['--python', os.path.join(basedir, "util", "render_bake.py")]) elif subject == 'denoise_animation':