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

Function run

dev-tools/scripts/scriptutil.py:132–138  ·  view source on GitHub ↗
(cmd, cwd=None)

Source from the content-addressed store, hash-verified

130
131
132def run(cmd, cwd=None):
133 try:
134 output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, cwd=cwd)
135 except subprocess.CalledProcessError as e:
136 print(e.output.decode('utf-8'))
137 raise e
138 return output.decode('utf-8')
139
140def update_file(filename, line_re, edit):
141 infile = open(filename, 'r')

Callers 6

check_prerequisitesFunction · 0.90
__init__Method · 0.90
get_current_git_revMethod · 0.90
open_fileFunction · 0.90
configure_pgpFunction · 0.90
runMethod · 0.90

Calls 1

decodeMethod · 0.65

Tested by

no test coverage detected