diff options
author | John Cai <jcai@gitlab.com> | 2020-01-24 01:26:43 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2020-01-24 01:26:43 +0300 |
commit | c283c088ff681c9008d0e921bfa3d8bc9dc46bf5 (patch) | |
tree | 1b6d390a29108413dacc74b840967c0282aa3cc4 /internal | |
parent | 6367f17d86852fbd72ced496bf0a44f1ef722366 (diff) | |
parent | 78e998126386e9a7c4acba0fd8d3f9b0099a97ce (diff) |
Merge branch 'jv-remove-test-repo-env-var' into 'master'
Remove unused TEST_REPO_STORAGE_PATH env var
See merge request gitlab-org/gitaly!1780
Diffstat (limited to 'internal')
-rw-r--r-- | internal/testhelper/testhelper.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go index 805aa0a5f..7f1a24752 100644 --- a/internal/testhelper/testhelper.go +++ b/internal/testhelper/testhelper.go @@ -94,17 +94,6 @@ func MustReadFile(t *testing.T, filename string) []byte { // GitlabTestStoragePath returns the storage path to the gitlab-test repo. func GitlabTestStoragePath() string { - // If TEST_REPO_STORAGE_PATH has been set (by the Makefile) then use that - testRepoPath := os.Getenv("TEST_REPO_STORAGE_PATH") - if testRepoPath != "" { - testRepoPathAbs, err := filepath.Abs(testRepoPath) - if err != nil { - log.Fatal(err) - } - - return testRepoPathAbs - } - _, currentFile, _, ok := runtime.Caller(0) if !ok { log.Fatal("Could not get caller info") |