Skip to content

Commit e248529

Browse files
matloobhealthy-pod
authored andcommitted
explicitly build relative path for Tool command in lcov_coverage_test (bazel-contrib#3399)
* explicitly build relative path for Tool command in lcov_coverage_test filepath.Join(".", "Tool") is just "Tool" because the path is cleaned. See https://go.dev/play/p/R1KWJ9612fN. Build the relative path explicitly using "." + string(filepath.Separator) + "Tool" * fix typo
1 parent 9e4b880 commit e248529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/coverage/lcov_coverage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func TestLib(t *testing.T) {
131131
}
132132
133133
func TestTool(t *testing.T) {
134-
err := exec.Command(filepath.Join(".", "Tool")).Run()
134+
err := exec.Command("." + string(filepath.Separator) + "Tool").Run()
135135
if err != nil {
136136
t.Error(err)
137137
}

0 commit comments

Comments
 (0)