Remove hard-coded mkdir on Windows from CI jobs
This is necessary to support PD-SSD VMs, which do not have a drive D:.
Closes #10713.
PiperOrigin-RevId: 293531829
diff --git a/.bazelci/postsubmit.yml b/.bazelci/postsubmit.yml
index bd8ac87..1984e3a 100644
--- a/.bazelci/postsubmit.yml
+++ b/.bazelci/postsubmit.yml
@@ -181,12 +181,11 @@
windows:
batch_commands:
- powershell -Command "(Get-Content WORKSPACE) -Replace '# android_', 'android_' | Set-Content WORKSPACE"
- - mkdir D:\\bazeltest
build_flags:
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=JAVA_HOME"
- - "--test_env=TEST_INSTALL_BASE=D:/bazeltest/install_base"
+ - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest_install_base"
- "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external"
build_targets:
- "//src:bazel.exe"
@@ -196,7 +195,7 @@
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=JAVA_HOME"
- - "--test_env=TEST_INSTALL_BASE=D:/bazeltest/install_base"
+ - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest_install_base"
- "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external"
test_targets:
- "//src:all_windows_tests"
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml
index 7135337..3484dc6 100644
--- a/.bazelci/presubmit.yml
+++ b/.bazelci/presubmit.yml
@@ -174,12 +174,11 @@
shards: 4
batch_commands:
- powershell -Command "(Get-Content WORKSPACE) -Replace '# android_', 'android_' | Set-Content WORKSPACE"
- - mkdir D:\\bazeltest
build_flags:
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=JAVA_HOME"
- - "--test_env=TEST_INSTALL_BASE=D:/bazeltest/install_base"
+ - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest_install_base"
- "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external"
build_targets:
- "//src:bazel.exe"
@@ -189,7 +188,7 @@
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=JAVA_HOME"
- - "--test_env=TEST_INSTALL_BASE=D:/bazeltest/install_base"
+ - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest_install_base"
- "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external"
test_targets:
- "//src:all_windows_tests"