Skip to content

Commit 97925b7

Browse files
committed
restore output directory path
1 parent a5d8767 commit 97925b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/tools/bazel_testing/bazel_testing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func setupWorkspace(args Args, files []string) (dir string, cleanup func() error
285285
tmpDir = filepath.Clean(tmpDir)
286286
if i := strings.Index(tmpDir, string(os.PathSeparator)+"execroot"+string(os.PathSeparator)); i >= 0 {
287287
outBaseDir = tmpDir[:i]
288-
if dir, err := filepath.Abs(outBaseDir); err == nil {
288+
if dir, err := filepath.Abs(filepath.Dir(outBaseDir)); err == nil {
289289
// Use forward slashes, even on Windows. Bazel's rc file parser
290290
// reports an error if there are backslashes.
291291
outputUserRoot = strings.ReplaceAll(dir, `\`, `/`)

0 commit comments

Comments
 (0)