()
| 21 | ) |
| 22 | |
| 23 | func getCortexProjectDir() string { |
| 24 | if dir := os.Getenv("CORTEX_CHECKOUT_DIR"); dir != "" { |
| 25 | return dir |
| 26 | } |
| 27 | |
| 28 | // use the git path if available |
| 29 | dir, err := exec.Command("git", "rev-parse", "--show-toplevel").Output() |
| 30 | if err == nil { |
| 31 | return string(bytes.TrimSpace(dir)) |
| 32 | } |
| 33 | |
| 34 | return os.Getenv("GOPATH") + "/src/github.com/cortexproject/cortex" |
| 35 | } |
| 36 | |
| 37 | func writeFileToSharedDir(s *e2e.Scenario, dst string, content []byte) error { |
| 38 | dst = filepath.Join(s.SharedDir(), dst) |
no outgoing calls