(cmd)
| 82 | return parser.parse_args() |
| 83 | |
| 84 | def runOutput(cmd): |
| 85 | print('[repro] %s' % cmd) |
| 86 | try: |
| 87 | return subprocess.check_output(cmd.split(' '), universal_newlines=True).strip() |
| 88 | except CalledProcessError as e: |
| 89 | raise RuntimeError("ERROR: Cmd '%s' failed with exit code %d and the following output:\n%s" |
| 90 | % (cmd, e.returncode, e.output)) |
| 91 | |
| 92 | # Remembers non-zero exit code in lastFailureCode unless rememberFailure==False |
| 93 | def run(cmd, rememberFailure=True): |
no test coverage detected
searching dependent graphs…