mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Tests: add WIITH_TESTS_BATCHED option to execute Blender once per test
Some tests like cycles, sequencer and compositor batch together multiple tests in a single Blender invocation. This makes them run faster, but makes debugging harder. This is an option to disable that batching. Pull Request: https://projects.blender.org/blender/blender/pulls/114603
This commit is contained in:
parent
8d0323e76e
commit
dccbc27eab
11 changed files with 44 additions and 42 deletions
|
|
@ -34,6 +34,7 @@ def create_argparse():
|
|||
parser.add_argument("-testdir", nargs=1)
|
||||
parser.add_argument("-outdir", nargs=1)
|
||||
parser.add_argument("-idiff", nargs=1)
|
||||
parser.add_argument('--batch', default=False, action='store_true')
|
||||
return parser
|
||||
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ def main():
|
|||
report.set_reference_dir("reference")
|
||||
|
||||
test_dir_name = Path(test_dir).name
|
||||
ok = report.run(test_dir, blender, get_arguments, batch=True)
|
||||
ok = report.run(test_dir, blender, get_arguments, batch=args.batch)
|
||||
|
||||
sys.exit(not ok)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue