(command, start_dir = PROJECT_ROOT)
| 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 |
| 43 | def 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 |
no test coverage detected