(t *testing.T, checkPath string)
| 188 | } |
| 189 | |
| 190 | func ensureExists(t *testing.T, checkPath string) { |
| 191 | if _, err := os.Stat(checkPath); err != nil && os.IsNotExist(err) { |
| 192 | t.Logf("Plugin agent ran, but couldn't find expected results at %v:", checkPath) |
| 193 | output, _ := exec.Command("ls", "-l", filepath.Dir(checkPath)).CombinedOutput() |
| 194 | t.Log(string(output)) |
| 195 | t.Fail() |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func withTempDir(t *testing.T, callback func(tmpdir string)) { |
| 200 | // Create a temporary directory for results gathering |
no test coverage detected