(args, **kwargs)
| 141 | return output.strip() |
| 142 | |
| 143 | def command(args, **kwargs): |
| 144 | if kwargs.get("shell") is None: |
| 145 | kwargs["shell"] = False |
| 146 | # Executes a command, and exits if it fails |
| 147 | try: |
| 148 | return _exec_command(args, **kwargs) |
| 149 | except ExecException as e: |
| 150 | sys.exit(e.retcode) |
| 151 | |
| 152 | def shell_command(args, **kwargs): |
| 153 | # Executes a command, and exits if it fails |
nothing calls this directly
no test coverage detected