diff options
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index ed1a0e8..b6879ee 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -476,7 +476,7 @@ def format_parameter_file(file_basename: str, test: TestDef, test_build_dir: str return destination -def detect_parameter_files(test: TestDef, test_build_dir: str) -> (Path, Path): +def detect_parameter_files(test: TestDef, test_build_dir: str) -> T.Tuple[Path, Path]: nativefile = test.path / 'nativefile.ini' crossfile = test.path / 'crossfile.ini' @@ -488,7 +488,9 @@ def detect_parameter_files(test: TestDef, test_build_dir: str) -> (Path, Path): return nativefile, crossfile -def run_test(test: TestDef, extra_args, compiler, backend, flags, commands, should_fail, use_tmp: bool): +def run_test(test: TestDef, extra_args: T.List[str], compiler: str, backend: Backend, + flags: T.List[str], commands: T.Tuple[T.List[str], T.List[str], T.List[str], T.List[str]], + should_fail: bool, use_tmp: bool) -> T.Optional[TestResult]: if test.skip: return None build_dir = create_deterministic_builddir(test, use_tmp) @@ -503,7 +505,10 @@ def run_test(test: TestDef, extra_args, compiler, backend, flags, commands, shou finally: mesonlib.windows_proof_rmtree(build_dir) -def _run_test(test: TestDef, test_build_dir: str, install_dir: str, extra_args, compiler, backend, flags, commands, should_fail): +def _run_test(test: TestDef, test_build_dir: str, install_dir: str, + extra_args: T.List[str], compiler: str, backend: Backend, + flags: T.List[str], commands: T.Tuple[T.List[str], T.List[str], T.List[str], T.List[str]], + should_fail: bool) -> TestResult: compile_commands, clean_commands, install_commands, uninstall_commands = commands gen_start = time.time() # Configure in-process |