Skip to content

Commit

Permalink
Run bash as interactive in test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikachu920 authored Jun 8, 2024
1 parent 585968b commit 3c6f620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class EnvironmentResource(TypedDict):
run_vanilla_tests = os.environ.get("INPUT_RUN_VANILLA_TESTS", None) == "true"
jdk_version = os.environ.get("INPUT_JDK_VERSION", None)
if jdk_version is not None:
sdkman_use_process = subprocess.run(("bash", "-c", f"sdk default java {jdk_version}"))
sdkman_use_process = subprocess.run(("bash", "-ci", f"sdk default java {jdk_version}"))
if sdkman_use_process.returncode != 0:
sdkman_install_process = subprocess.run(("bash", "-c", f"yes | sdk install java {jdk_version}"))
sdkman_install_process = subprocess.run(("bash", "-ci", f"yes | sdk install java {jdk_version}"))
if sdkman_install_process.returncode != 0:
print(f"Failed to install JDK {jdk_version}")
exit(1)
Expand Down

0 comments on commit 3c6f620

Please sign in to comment.