Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Dec 2, 2024
1 parent f26bb7e commit 9e5208e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/command_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,16 @@ func RunCLITest(t *testing.T, test CliTest, GoldenFolder string, executableName
if idxOfOutputArg > -1 {
outLocation = test.Args[idxOfOutputArg+1]
_, err = os.Stat(outLocation)
fmt.Println(outLocation)
if err != nil {
// Check if the error is due to the file not existing
if !os.IsNotExist(err) {
assert.NoError(t, err)
}
fmt.Println("here")
} else {
err = deleteLocalFiles(outLocation)
fmt.Println("deleting files")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 9e5208e

Please sign in to comment.