UninstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command.
()
| 99 | |
| 100 | // UninstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command. |
| 101 | func (tc TestContext) UninstallOLM() { |
| 102 | cmd := exec.Command(tc.BinaryName, "olm", "uninstall") |
| 103 | if _, err := tc.Run(cmd); err != nil { |
| 104 | fmt.Fprintln(GinkgoWriter, "warning: error when uninstalling OLM:", err) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | // ReplaceInFile replaces all instances of old with new in the file at path. |
| 109 | // todo(camilamacedo86): this func can be pushed to upstream/kb |
no test coverage detected