Skip to content

Commit

Permalink
fixing for openjdk/IBM, seems like they have slightly different wordi…
Browse files Browse the repository at this point in the history
…ng, but all have 'version' word. Surrounding with spaces for the case if version word appears in _JAVA_OPTIONS
  • Loading branch information
fe2s committed Jun 23, 2015
1 parent cd455ef commit 7d781a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def determine_java_version(java_exe):
raw_output_lines = raw_output.split('\n')

# find raw version string, eg 'java version "1.8.0_25"'
raw_version_str = next(str for str in raw_output_lines if str.startswith("java version"))
raw_version_str = next(str for str in raw_output_lines if " version " in str)

version_str = raw_version_str.split()[-1].strip('"') # eg '1.8.0_25'
version, update = version_str.split('_') # eg ['1.8.0', '25']
Expand Down

0 comments on commit 7d781a0

Please sign in to comment.