Runs custom PBS unittests against a distribution.
(pbs_source_dir: Path, dist_root: Path, python_info)
| 44 | |
| 45 | |
| 46 | def run_custom_unittests(pbs_source_dir: Path, dist_root: Path, python_info) -> int: |
| 47 | """Runs custom PBS unittests against a distribution.""" |
| 48 | |
| 49 | args = [ |
| 50 | "-m", |
| 51 | "unittest", |
| 52 | "pythonbuild.disttests", |
| 53 | ] |
| 54 | |
| 55 | env = { |
| 56 | "PYTHONPATH": str(pbs_source_dir), |
| 57 | "TARGET_TRIPLE": python_info["target_triple"], |
| 58 | "BUILD_OPTIONS": python_info["build_options"], |
| 59 | } |
| 60 | |
| 61 | res = run_dist_python(dist_root, python_info, args, env, stderr=subprocess.STDOUT) |
| 62 | |
| 63 | return res.returncode |
| 64 | |
| 65 | |
| 66 | def run_stdlib_tests(dist_root: Path, python_info, harness_args: list[str]) -> int: |
no test coverage detected