Skip to content

Commit 52c9eb6

Browse files
committed
Remove check_version in common_functions.sh
- remove check_version function - remove set_version function resolves : #4949 Signed-off-by: Anna Babu Palathingal <[email protected]>
1 parent 3becd04 commit 52c9eb6

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

external/build_image.sh

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ check_external_custom=$9
4242
if [[ "${check_external_custom}" == "0" ]]; then
4343
set_test $1
4444
fi
45-
set_version $2
4645
set_vm $3
4746
set_os $4
4847
set_package $5

external/common_functions.sh

-27
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
# limitations under the License.
1414
#
1515

16-
# Supported versions
17-
supported_versions="8 11 17 21 22"
18-
1916
# Supported JVMs
2017
supported_jvms="hotspot openj9"
2118

@@ -32,30 +29,6 @@ supported_builds="full"
3229
# Supported tests
3330
supported_tests="external_custom camel criu-portable-checkpoint criu-portable-restore criu-ubi-portable-checkpoint criu-ubi-portable-restore derby elasticsearch jacoco jenkins functional-test kafka lucene-solr openliberty-mp-tck payara-mp-tck quarkus quarkus_quickstarts scala system-test tomcat tomee wildfly wycheproof netty spring zookeeper"
3431

35-
function check_version() {
36-
version=$1
37-
38-
for current_version in ${supported_versions}
39-
do
40-
if [[ "${version}" == "${current_version}" ]]; then
41-
return 1
42-
fi
43-
done
44-
45-
return 0
46-
}
47-
48-
# Set a valid version
49-
function set_version() {
50-
version=$1
51-
52-
if (check_version ${version}); then
53-
echo "ERROR: Invalid Version: ${version}"
54-
echo "Usage: $0 [${supported_versions}]"
55-
exit 1
56-
fi
57-
}
58-
5932
function check_os() {
6033
os=$1
6134

0 commit comments

Comments
 (0)