(command, start_dir = PROJECT_SRC_DIR, env=None, verbose=False)
| 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 |
| 41 | def 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 |
| 54 | def get_android_manifest() -> str: |
no test coverage detected