File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 13
13
14
14
# Clean up any java-* packages that have been installed that do not match
15
15
# our stated JAVA_VERSION-JAVA_VENDOR (e.g.: 11-openjdk; 1.8.0-openj9)
16
- rpm -qa java-\* | while read pkg; do
17
- if ! echo " $pkg " | grep -q " ^java-${JAVA_VERSION} -${JAVA_VENDOR} " ; then
18
- rpm -e --nodeps " $pkg "
19
- fi
20
- done
16
+ rpm -e --nodeps $( rpm -qa java-* | grep -v " ^java-${JAVA_VERSION} -${JAVA_VENDOR} " )
Original file line number Diff line number Diff line change @@ -52,3 +52,27 @@ Feature: Miscellaneous OpenJDK-related unit tests
52
52
Then available container log should not contain dejavu-sans-mono-fonts
53
53
Then available container log should not contain os-prober
54
54
Then available container log should not contain rpm-plugin-systemd-inhibit
55
+
56
+ @ubi8/openjdk-8
57
+ Scenario : Check that directories from other JDKs are not present (JDK8)
58
+ When container is started with args
59
+ | arg | value |
60
+ | command | ls -1 /usr /lib /jvm |
61
+ Then available container log should not contain java-11
62
+ And available container log should not contain java-17
63
+
64
+ @ubi8/openjdk-11
65
+ Scenario : Check that directories from other JDKs are not present (JDK11)
66
+ When container is started with args
67
+ | arg | value |
68
+ | command | ls -1 /usr /lib /jvm |
69
+ Then available container log should not contain java-1.8.0
70
+ Then available container log should not contain java-17
71
+
72
+ @ubi8/openjdk-17
73
+ Scenario : Check that directories from other JDKs are not present (JDK17)
74
+ When container is started with args
75
+ | arg | value |
76
+ | command | ls -1 /usr /lib /jvm |
77
+ Then available container log should not contain java-1.8.0
78
+ Then available container log should not contain java-11
You can’t perform that action at this time.
0 commit comments