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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/modules/test_utils.py')
-rwxr-xr-xtests/python/modules/test_utils.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/python/modules/test_utils.py b/tests/python/modules/test_utils.py
index 6ca498d8cdf..55ef882c49c 100755
--- a/tests/python/modules/test_utils.py
+++ b/tests/python/modules/test_utils.py
@@ -75,18 +75,24 @@ class AbstractBlenderRunnerTest(unittest.TestCase):
assert self.blender, "Path to Blender binary is to be set in setUpClass()"
assert self.testdir, "Path to tests binary is to be set in setUpClass()"
- blendfile = self.testdir / filepath
+ blendfile = self.testdir / filepath if filepath else ""
- command = (
+ command = [
self.blender,
'--background',
'-noaudio',
'--factory-startup',
'--enable-autoexec',
- str(blendfile),
+ ]
+
+ if blendfile:
+ command.append(str(blendfile))
+
+ command.extend([
'-E', 'CYCLES',
'--python-exit-code', '47',
'--python-expr', python_script,
+ ]
)
proc = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,