Skip to content

Commit ccaa792

Browse files
committed
Address on-slack review.
1 parent cff9bcf commit ccaa792

File tree

1 file changed

+3
-3
lines changed
  • java/ql/integration-tests/all-platforms/java/diagnostics/java-version-too-old

1 file changed

+3
-3
lines changed

java/ql/integration-tests/all-platforms/java/diagnostics/java-version-too-old/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from diagnostics_test_utils import *
44

55
# Ensure we're using an old Java version that won't work with Gradle
6-
for java_home in ["JAVA_HOME_8_X64", "JAVA_HOME_8_arm64", "JAVA_HOME_8_ARM64"]:
7-
if java_home in os.environ:
8-
os.environ["JAVA_HOME"] = os.environ[java_home]
6+
for k in os.environ:
7+
if k.upper() in ["JAVA_HOME_8_X64", "JAVA_HOME_8_ARM64"]:
8+
os.environ["JAVA_HOME"] = os.environ[k]
99
sep = ";" if platform.system() == "Windows" else ":"
1010
os.environ["PATH"] = "".join([os.path.join(os.environ["JAVA_HOME"], "bin"), sep, os.environ["PATH"]])
1111
break

0 commit comments

Comments
 (0)