Skip to content

Commit 56903c0

Browse files
committed
Disable //:ScalafmtTest.format-test on Windows
Works around the following `test_dependency_version.sh` failure: ```txt FATAL: ExecuteProgram(C:\tools\msys64\home\b\_bazel_b\...\ScalafmtTest.format-test) failed: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\tools\msys64\home\b\_bazel_b\...\ScalafmtTest.format-test"): %1 is not a valid Win32 application. (error: 193) Test "test_precompiled_protoc_rules_java_7" failed (49 sec) ```
1 parent 450a680 commit 56903c0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test_dependency_versions.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,15 @@ do_build_and_test() {
154154
set -e
155155
bazel build //...
156156
bazel test //...
157-
bazel run //:ScalafmtTest.format-test
157+
158+
# Windows fails with:
159+
# FATAL: ExecuteProgram(C:\...\ScalafmtTest.format-test) failed:
160+
# ERROR: src/main/native/windows/process.cc(202):
161+
# CreateProcessW("C:\...\ScalafmtTest.format-test"):
162+
# %1 is not a valid Win32 application.
163+
if ! is_windows; then
164+
bazel run //:ScalafmtTest.format-test
165+
fi
158166
}
159167

160168
test_minimum_supported_versions() {

0 commit comments

Comments
 (0)