Skip to content

Commit 26eea01

Browse files
jgriegerjgriegershs
andauthoredNov 10, 2023
# 1296 fix(precompiled test guite): exec bit check omitted on Windows (#1301)
Co-authored-by: Jacob Grieger <jacob.grieger@siemens-healthineers.com>
1 parent 7161a9d commit 26eea01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎ginkgo/internal/test_suite.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"path"
88
"path/filepath"
99
"regexp"
10+
"runtime"
1011
"strings"
1112

1213
"github.com/onsi/ginkgo/v2/types"
@@ -192,7 +193,7 @@ func precompiledTestSuite(path string) (TestSuite, error) {
192193
return TestSuite{}, errors.New("this is not a .test binary")
193194
}
194195

195-
if filepath.Ext(path) == ".test" && info.Mode()&0111 == 0 {
196+
if filepath.Ext(path) == ".test" && runtime.GOOS != "windows" && info.Mode()&0111 == 0 {
196197
return TestSuite{}, errors.New("this is not executable")
197198
}
198199

0 commit comments

Comments
 (0)
Please sign in to comment.