Skip to content

Commit

Permalink
chore: fix path setting issue with Windows tests (#828)
Browse files Browse the repository at this point in the history
* chore: fix path setting issue with Windows tests

* add back refreshEnv calls
  • Loading branch information
shubha-rajan authored May 2, 2022
1 parent 6839b7d commit 8fbc8ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .kokoro/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ if [ -n "$KOKORO_GFILE_DIR" ]; then
fi

echo -e "******************** Running tests... ********************\n"
echo "JAVA_HOME: $JAVA_HOME"
echo "Maven version: $(mvn --version)"
mvn -e -B clean verify -P e2e -Dcheckstyle.skip
echo -e "******************** Tests complete. ********************\n"
4 changes: 3 additions & 1 deletion .kokoro/tests/run_tests_java11.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
set JAVA_HOME="C:\OpenJDK\jdk-11.0.11"
setx JAVA_HOME "C:\\OpenJDK\jdk-11.0.11"
setx PATH "%JAVA_HOME%\bin;%PATH%"
call RefreshEnv.cmd
"C:\Program Files\Git\bin\bash.exe" github/cloud-sql-jdbc-socket-factory/.kokoro/tests/run_tests.sh
4 changes: 3 additions & 1 deletion .kokoro/tests/run_tests_java17.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
set JAVA_HOME="C:\OpenJDK\jdk-17"
setx JAVA_HOME "C:\\OpenJDK\jdk-17"
setx PATH "%JAVA_HOME%\bin;%PATH%"
call RefreshEnv.cmd
"C:\Program Files\Git\bin\bash.exe" github/cloud-sql-jdbc-socket-factory/.kokoro/tests/run_tests.sh

0 comments on commit 8fbc8ad

Please sign in to comment.