(args)
| 56 | |
| 57 | |
| 58 | def list_cases(args): |
| 59 | cmd = python_cmd() |
| 60 | cmd.extend(['-m', 'test', '--list-cases']) |
| 61 | cmd.extend(args.test_args) |
| 62 | proc = subprocess.run(cmd, |
| 63 | stdout=subprocess.PIPE, |
| 64 | universal_newlines=True) |
| 65 | exitcode = proc.returncode |
| 66 | if exitcode: |
| 67 | cmd = format_shell_args(cmd) |
| 68 | print("Failed to list tests: %s failed with exit code %s" |
| 69 | % (cmd, exitcode)) |
| 70 | sys.exit(exitcode) |
| 71 | tests = proc.stdout.splitlines() |
| 72 | return tests |
| 73 | |
| 74 | |
| 75 | def run_tests(args, tests, huntrleaks=None): |
no test coverage detected
searching dependent graphs…