Skip to content

Commit

Permalink
hide symlink file
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Ranson committed Dec 12, 2024
1 parent ea4408a commit 663f5b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/foreach/foreach.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions cmd/foreach/foreach_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 663f5b7

Please sign in to comment.