diff --git a/cmd/foreach/foreach.go b/cmd/foreach/foreach.go index cd9cf6e..f143ffb 100644 --- a/cmd/foreach/foreach.go +++ b/cmd/foreach/foreach.go @@ -48,7 +48,7 @@ var ( failedReposFileName string ) -const previousResultsSymlink = "..turbolift_previous_results" +const previousResultsSymlink = ".turbolift_previous_results" func formatArguments(arguments []string) string { quotedArgs := make([]string, len(arguments)) diff --git a/cmd/foreach/foreach_test.go b/cmd/foreach/foreach_test.go index 78a737b..695fc4d 100644 --- a/cmd/foreach/foreach_test.go +++ b/cmd/foreach/foreach_test.go @@ -267,7 +267,7 @@ func TestItCreatesSymlinksSuccessfully(t *testing.T) { assert.Contains(t, out, "turbolift foreach completed") assert.Contains(t, out, "2 OK, 0 skipped, 1 errored") - resultsDir, err := os.Readlink("..turbolift_previous_results") + resultsDir, err := os.Readlink(".turbolift_previous_results") if err != nil { t.Errorf("Error reading symlink: %s", err) @@ -334,7 +334,7 @@ func setUpSymlink() error { if err != nil { return err } - err = os.Symlink("mock_output", "..turbolift_previous_results") + err = os.Symlink("mock_output", ".turbolift_previous_results") if err != nil { return err }