Skip to content

Commit 7556a86

Browse files
committed
fix edge case where build -o is pointing at an explicit file, not a directory
1 parent 4df06c6 commit 7556a86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ginkgo/build/build_command.go

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func buildSpecs(args []string, cliConfig types.CLIConfig, goFlagsConfig types.Go
6363
}
6464
if stat.IsDir() {
6565
testBinPath = goFlagsConfig.O + "/" + suite.PackageName + ".test"
66+
} else {
67+
testBinPath = goFlagsConfig.O
6668
}
6769
}
6870
if len(testBinPath) == 0 {

0 commit comments

Comments
 (0)