Enable update testing on the CI platform.

This commit is contained in:
2021-05-15 19:54:25 +01:00
parent e4007deecd
commit be00398a17
+1 -1
View File
@@ -47,7 +47,7 @@ func updatePackage() bool {
fmt.Println("Unable to obtain download url for the binary", binaryName) fmt.Println("Unable to obtain download url for the binary", binaryName)
return false return false
} }
if flag.Lookup("test.v") == nil { if flag.Lookup("test.v") == nil && os.Getenv("CI") == "" {
downloadedBinaryPath := fmt.Sprintf("/tmp/%s", binaryName) downloadedBinaryPath := fmt.Sprintf("/tmp/%s", binaryName)
g := got.New() g := got.New()
err = g.Download(result, downloadedBinaryPath) err = g.Download(result, downloadedBinaryPath)