Parses arguments for use with the test launcher. Arguments are: 1. Working directory. 2. Test runner, `pytest` or `nose` 3. Rest of the arguments are passed into the test runner.
()
| 6 | |
| 7 | |
| 8 | def parse_argv(): |
| 9 | """Parses arguments for use with the test launcher. |
| 10 | Arguments are: |
| 11 | 1. Working directory. |
| 12 | 2. Test runner, `pytest` or `nose` |
| 13 | 3. Rest of the arguments are passed into the test runner. |
| 14 | """ |
| 15 | |
| 16 | return (sys.argv[1], sys.argv[2], sys.argv[3:]) |
| 17 | |
| 18 | |
| 19 | def run(cwd, testRunner, args): |