MCPcopy Create free account
hub / github.com/apache/solr / runOutput

Function runOutput

dev-tools/scripts/reproduceJenkinsFailures.py:84–90  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

82 return parser.parse_args()
83
84def 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
93def run(cmd, rememberFailure=True):

Callers 1

getLocalGitBranchFunction · 0.85

Calls 2

stripMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…