Skip to content

Commit 5d8c7c7

Browse files
authored
Merge pull request #179 from gitpod-io/test-version
Fixing path issue of test coverate collection command
2 parents e8d0fe4 + 7e7fc4a commit 5d8c7c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/leeway/build.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,8 @@ func collectGoTestCoverage(covfile, fullName string) testCoverageFunc {
13071307
// The coverage file contains the coverage for all packages in the module.
13081308

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

0 commit comments

Comments
 (0)