diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-05 17:32:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-09 12:33:20 +0300 |
commit | 40e62f271c137f6bce19c6f6497948d014a7ab17 (patch) | |
tree | 79d1552bca2be815992240cdef5b21b9bafbb551 /tests/python/modules | |
parent | 370a2d6917ebd8df5177fe4854a447e3839dddaa (diff) |
FFmpeg: Add regression tests
Currently only covering handful of files from reports about wrong fps detected.
It will need D3083 applied first to get tests passed, also tests themselves
are to be committed to svn.
But there are some python code which needs to be reviewed, like blendfile
passed to run_blender().
Reviewers: sybren, mont29
Reviewed By: sybren, mont29
Subscribers: mont29
Differential Revision: https://developer.blender.org/D3096
Diffstat (limited to 'tests/python/modules')
-rwxr-xr-x | tests/python/modules/test_utils.py | 12 |
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, |