MCPcopy Create free account
hub / github.com/alibaba/BladeDISC / execute

Function execute

scripts/python/common_setup.py:146–150  ·  view source on GitHub ↗

Execute a shell command, exception raised on failure.

(cmd)

Source from the content-addressed store, hash-verified

144
145
146def execute(cmd):
147 """Execute a shell command, exception raised on failure."""
148 shell_setting = "set -e; set -o pipefail; "
149 logger.info("Execute shell command: `" + cmd + "`, cwd: " + os.getcwd())
150 subprocess.check_call(shell_setting + cmd, shell=True, executable="/bin/bash")
151
152
153def ensure_empty_dir(dir, clear_hidden=True):

Callers 6

config_mkldnnFunction · 0.70
build_mkldnnFunction · 0.70
link_dirsFunction · 0.70
symlink_disc_filesFunction · 0.70
cleanup_building_envFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected