MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / run_test

Function run_test

tests/testing/run_image_tests.py:423–437  ·  view source on GitHub ↗
(env: Environment, test: Test, run_only: bool, compare_only: bool, ref_dir: Path, result_dir: Path, min_tolerance, process_controller: ProcessController, build_id: str)

Source from the content-addressed store, hash-verified

421 return success
422
423def run_test(env: Environment, test: Test, run_only: bool, compare_only: bool, ref_dir: Path, result_dir: Path, min_tolerance, process_controller: ProcessController, build_id: str):
424 if process_controller.is_interrupted():
425 return
426 with print_mutex:
427 print(f' {test.name:<60} : STARTED')
428 test.tolerance = max(test.tolerance, min_tolerance)
429 test.process_controller = process_controller
430 start_time = time.time()
431 result, messages = test.run(run_only, compare_only, ref_dir, result_dir, env.mogwai_exe, env.image_compare_exe, env.temp_dir)
432 elapsed_time = time.time() - start_time
433
434 if result != Test.Result.SKIPPED:
435 messages.append(f'View test at: http://{env.hostname}:8080/{env.vcs_root}/{build_id}/{test.name}')
436
437 return {"name": test.name, "elapsed_time": elapsed_time, "result": result, "messages": messages}
438
439def run_tests(env: Environment, tests: list[Test], run_only: bool, compare_only: bool, ref_dir: Path, result_dir: Path, min_tolerance, xml_report, process_controller: ProcessController, build_id: str):
440 ''&#x27;

Callers

nothing calls this directly

Calls 4

is_interruptedMethod · 0.80
maxFunction · 0.50
runMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected