Skip to content

Commit aa2cca3

Browse files
committed
[OPENJDK-2968] improve JAVA_OPTIONS test to apply to runtime images
Move the feature file with the JAVA_OPTIONS test into a module which is included by the runtime images (run) and retag it so it is applied to the runtime images. Improve the test's log check. Test passes for builder images and fails for runtime images. https://issues.redhat.com/browse/OPENJDK-2968 Signed-off-by: Jonathan Dowland <[email protected]>
1 parent f583df9 commit aa2cca3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
@ubi8/openjdk-8
2-
@ubi8/openjdk-11
3-
@ubi8/openjdk-17
4-
@ubi8/openjdk-21
5-
Feature: OpenJDK JAVA s2i Runtime tests
1+
@ubi8
2+
Feature: OpenJDK run script option handling
63

74
Scenario: JAVA_OPTIONS sets JAVA_OPTS and overrides defaults (OPENJDK-2009)
85
Given container is started with env
96
| variable | value |
107
| JAVA_OPTIONS | --show-version |
118
Then container log should not contain -XX:MaxRAMPercentage
12-
And container log should contain --show-version
9+
And container log should match regex ^INFO exec.*java --show-version

0 commit comments

Comments
 (0)