MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / RunShellCmd

Function RunShellCmd

scripts/android.py:41–51  ·  view source on GitHub ↗
(command, start_dir = PROJECT_SRC_DIR, env=None, verbose=False)

Source from the content-addressed store, hash-verified

39# Runs a command in a directory and returns its return code.
40# Directory is project root by default, or a relative path from project root
41def RunShellCmd(command, start_dir = PROJECT_SRC_DIR, env=None, verbose=False):
42 # Flush stdout here. Helps when debugging on CI.
43 sys.stdout.flush()
44
45 if start_dir != PROJECT_SRC_DIR:
46 start_dir = RepoRelative(start_dir)
47 cmd_list = command.split(" ")
48
49 if verbose:
50 print(f'CICMD({cmd_list}, env={env})')
51 subprocess.check_call(cmd_list, cwd=start_dir, env=env)
52
53# Manifest file describing out test application
54def get_android_manifest() -> str:

Callers 2

generate_apkFunction · 0.70
mainFunction · 0.70

Calls 1

RepoRelativeFunction · 0.70

Tested by

no test coverage detected