Skip to content

Commit

Permalink
figure out runtime for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons committed Jan 9, 2018
1 parent 0ff848a commit 2e7e109
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func DownloadableURL(original string) (string, error) {
if !found {
return "", fmt.Errorf("Unsupported URL scheme: %s", url.Scheme)
}

fmt.Printf("Swampy: parsed string after DownloadableURL is %s\n", url.String())
return url.String(), nil
}

Expand Down Expand Up @@ -145,13 +145,17 @@ func FileExistsLocally(original string) (bool, error) {
if runtime.GOOS == "windows" && len(filePath) > 0 && filePath[0] == '/' {
filePath = filePath[1:]
}
fmt.Printf("Swampy: %#v\n", runtime.GOOS)
fmt.Printf("Swampy: %s\n", filePath)
_, err := os.Stat(filePath)
if err != nil {
err = fmt.Errorf("could not stat file %s", err)
err = fmt.Errorf("could not stat file: %s\n", err)
return fileExists, err
} else {
fmt.Printf("Swampy: in the else statement")
fileExists = true
}
}
fmt.Printf("Swampy: made it to bottom of file")
return fileExists, nil
}

0 comments on commit 2e7e109

Please sign in to comment.