(self, action, success=True)
| 163 | tmp_path, config, cfd_args=["service", "uninstall"], cfd_pre_args=[], capture_output=False, root=root, skip_config_flag=use_token) |
| 164 | |
| 165 | def launchctl_cmd(self, action, success=True): |
| 166 | cmd = subprocess.run( |
| 167 | ["launchctl", action, "com.cloudflare.cloudflared"], check=success) |
| 168 | if not success: |
| 169 | assert cmd.returncode != 0, f"Expect {cmd.args} to fail, but it succeed" |
| 170 | |
| 171 | def sysv_cmd(self, action, success=True): |
| 172 | cmd = subprocess.run( |
no test coverage detected