diff options
Diffstat (limited to 'run_tests')
-rwxr-xr-x | run_tests | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -36,20 +36,7 @@ def is_ci() -> bool: | |||
36 | def run_pytest(argv: List[str]) -> int: | 36 | def run_pytest(argv: List[str]) -> int: |
37 | """Returns the exit code from pytest.""" | 37 | """Returns the exit code from pytest.""" |
38 | if is_ci(): | 38 | if is_ci(): |
39 | # TODO(b/266734831): Find out why smoke tests fail. | 39 | argv = ["-m", "not skip_cq"] + argv |
40 | # TODO(b/266734831): Find out why each superproject test takes 8m+. | ||
41 | tests_to_skip = ( | ||
42 | "test_smoke_repo", | ||
43 | "test_smoke_git", | ||
44 | "test_superproject_get_superproject_invalid_branch", | ||
45 | "test_superproject_get_superproject_invalid_url", | ||
46 | ) | ||
47 | |||
48 | print("WARNING: Skipping tests:", tests_to_skip) | ||
49 | argv = [ | ||
50 | "-k", | ||
51 | " and ".join(f"not {x}" for x in tests_to_skip), | ||
52 | ] + argv | ||
53 | 40 | ||
54 | return pytest.main(argv) | 41 | return pytest.main(argv) |
55 | 42 | ||