Add support for detecting Java 8 27/111227/3
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 13 Aug 2020 09:23:22 +0000 (11:23 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 31 Aug 2020 08:42:35 +0000 (08:42 +0000)
commite6631c5815980aa2dbb27c776885920380cfbab3
treef8bebf48512e5cafeccb34b829a84ef95e6d4c9a
parent836bd90e99887e4d92edb0528dc69a693a13512b
Add support for detecting Java 8

For Java 11 there are four ways of checking Java binary version:
* -version       print product version to the error stream and exit
* -showversion   print product version to the error stream and continue
* --version      print product version to the output stream and exit
* --show-version print product version to the output stream and continue

For Java 8 only error stream options are available. There is no support
for output stream (double-hyphenated) options.

This patch extends list of executed commands for binary version
detection. Java 8 presence will now be shown in results instead of
being reported as an error.

Issue-ID: INT-1601
Change-Id: I1b538bc1f0826f6000fedb08860d12c15fe2fc14
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
test/security/check_versions/src/k8s_bin_versions_inspector.py