(env: Environment, test: Test, run_only: bool, compare_only: bool, ref_dir: Path, result_dir: Path, min_tolerance, process_controller: ProcessController, build_id: str)
| 421 | return success |
| 422 | |
| 423 | def 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 | |
| 439 | def 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 | ''' |
nothing calls this directly
no test coverage detected