Skip to content

Commit

Permalink
Merge pull request #179 from gitpod-io/test-version
Browse files Browse the repository at this point in the history
Fixing path issue of test coverate collection command
  • Loading branch information
nandajavarma authored May 8, 2024
2 parents e8d0fe4 + 7e7fc4a commit 5d8c7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/leeway/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ func collectGoTestCoverage(covfile, fullName string) testCoverageFunc {
// The coverage file contains the coverage for all packages in the module.

cmd := exec.Command("go", "tool", "cover", "-func", covfile)
log.WithField("pwd", filepath.Dir(covfile)).WithField("covfile", covfile).Debug("collecting test coverage")
cmd.Dir = filepath.Dir(covfile)
out, err := cmd.CombinedOutput()
if err != nil {
err = xerrors.Errorf("cannot collect test coverage: %w: %s", err, string(out))
Expand Down

0 comments on commit 5d8c7c7

Please sign in to comment.