MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / RunShellCmd

Function RunShellCmd

scripts/github_ci_linux.py:43–47  ·  view source on GitHub ↗
(command, start_dir = PROJECT_ROOT)

Source from the content-addressed store, hash-verified

41# Runs a command in a directory and returns its return code.
42# Directory is project root by default, or a relative path from project root
43def RunShellCmd(command, start_dir = PROJECT_ROOT):
44 if start_dir != PROJECT_ROOT:
45 start_dir = repo_relative(start_dir)
46 cmd_list = command.split(" ")
47 subprocess.check_call(cmd_list, cwd=start_dir)
48
49
50# TODO: Pass this in as arg, may be useful for running locally

Callers 1

BuildVTFunction · 0.70

Calls 1

repo_relativeFunction · 0.70

Tested by

no test coverage detected