Skip to content

Commit a72597a

Browse files
committed
Fix test failure on Windows
1 parent 2e197fd commit a72597a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/test/shell/bazel/bazel_rules_test.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -608,18 +608,10 @@ EOF
608608
cat >pkg/rules.bzl <<'EOF'
609609
_SCRIPT_EXT = ".bat"
610610
_SCRIPT_CONTENT = """@ECHO OFF
611-
if NOT "%FIXED_ONLY%" == "fixed" {
612-
exit /B 1
613-
}
614-
if NOT "%FIXED_AND_INHERITED%" == "inherited" {
615-
exit /B 1
616-
}
617-
if NOT "%FIXED_AND_INHERITED_BUT_NOT_SET%" == "fixed" {
618-
exit /B 1
619-
}
620-
if NOT "%INHERITED_ONLY%" == "inherited" {
621-
exit /B 1
622-
}
611+
if not "%FIXED_ONLY%" == "fixed" exit /B 1
612+
if not "%FIXED_AND_INHERITED%" == "inherited" exit /B 1
613+
if not "%FIXED_AND_INHERITED_BUT_NOT_SET%" == "fixed" exit /B 1
614+
if not "%INHERITED_ONLY%" == "inherited" exit /B 1
623615
"""
624616
EOF
625617
else

0 commit comments

Comments
 (0)