@@ -76,6 +76,7 @@ function pretest() {
76
76
SKIPPED4=" !skipped! jre only testing does not support this feature."
77
77
SKIPPED5=" !skipped! reproducers security now must be enabled by OTOOL_RUN_SECURITY_REPRODUCERS=true"
78
78
SKIPPED6=" !skipped! rhel 7 based images do not support this functionality."
79
+ SKIPPED7=" !skipped! rhel 7 Os version of Podman does not support this functionality."
79
80
export DISPLAY=:0
80
81
if [ " x$OTOOL_CONTAINER_RUNTIME " = " x" ] ; then
81
82
export PD_PROVIDER=podman
@@ -107,6 +108,13 @@ function skipIfRhel7Execution() {
107
108
fi
108
109
}
109
110
111
+ function skipIfRhel7OsExecution() {
112
+ if [ " $OTOOL_OS " == " el.7z" ] ; then
113
+ echo " $SKIPPED7 "
114
+ exit
115
+ fi
116
+ }
117
+
110
118
# # setUser: Check which OS version of container we are testing. Based on this, assign
111
119
# # the user for validation and further testing (s2i builds).
112
120
function setUser() {
@@ -146,7 +154,7 @@ function pullImage() {
146
154
}
147
155
148
156
function checkImage() {
149
- skipIfRhel7Execution
157
+ skipIfRhel7OsExecution
150
158
IMG_DIGEST=` $PD_PROVIDER inspect $HASH --format " {{.Digest}}" `
151
159
SOURCE_OF_TRUTH=` basename $TEST_DIGEST | sed " s/.*@//" `
152
160
@@ -537,20 +545,6 @@ function s2iLocal() {
537
545
else
538
546
cat $DF .orig | sed " s;/s2i/run;/s2i/run $ADDS ;g;" > $DF .nw1
539
547
fi
540
- # simplified, expectig rhel only:
541
- # if [ `getOsMajor` -eq 8 ] ; then
542
- # # cat $DF.nw1 | sed "s|USER root|USER root\nRUN yum config-manager --add-repo 'http://download.eng.brq.redhat.com/composes/finished/latest-RHEL-8/compose/AppStream/\
543
- # #$basearch/os/'\nRUN yum install -y nodejs|" > $DF
544
- # #echo
545
- # echo "rhel8 repos not added"
546
- # #unluckily, config-manager is notworking, removing nodejs from the project itself rather
547
- # elif [ `getOsMajor` -eq 7 ] ; then
548
- # # cat $DF.nw1 | sed "s|USER root|USER root\nRUN yum config-manager --add-repo 'http://download.fedoraproject.org/pub/epel/7/$\basearch'\\nRUN yum install -y nodejs|" > $DF
549
- # echo "rhel7 repos not added"
550
- # #unluckily, config-manager is notworking, removing nodejs from the project itself rather
551
- # else
552
- # echo "no rhel-specific changes"
553
- # fi
554
548
cat $DF .nw1 | tee $DF
555
549
buildFileWithHash $DF
556
550
popd
@@ -702,17 +696,17 @@ function checkHardcodedJdks() {
702
696
if [ " $OTOOL_jresdk " == " jre" ] ; then
703
697
echo " otool jresdk settings is: $OTOOL_jresdk "
704
698
echo " Check version based off java -version call."
705
- JRE_8_VERSION=' 1.8.0_382-b05 '
706
- JRE_11_VERSION=' 11.0.20+8 -LTS'
707
- JRE_17_VERSION=' 17.0.8+7 -LTS'
699
+ JRE_8_VERSION=' 1.8.0_392-b08 '
700
+ JRE_11_VERSION=' 11.0.21+9 -LTS'
701
+ JRE_17_VERSION=' 17.0.9+9 -LTS'
708
702
cat $( getOldJavaVersionLog)
709
703
cat $( getOldJavaVersionLog) | grep " openjdk version"
710
704
cat $( getOldJavaVersionLog) | grep -e " $JRE_11_VERSION " -e " $JRE_8_VERSION " -e " $JRE_17_VERSION "
711
705
712
706
else
713
707
cat $( getOldMvnVersionLog)
714
708
cat $( getOldMvnVersionLog) | grep " Java version:"
715
- cat $( getOldMvnVersionLog) | grep -e " Java version: 11.0.20 " -e " Java version: 1.8.0_382 " -e " Java version: 17.0.8 "
709
+ cat $( getOldMvnVersionLog) | grep -e " Java version: 11.0.21 " -e " Java version: 1.8.0_392 " -e " Java version: 17.0.9 "
716
710
fi
717
711
718
712
}
0 commit comments