From 5a29c4909f60927e2e3b7af8d8b995bd7929ea6a Mon Sep 17 00:00:00 2001 From: Anna Babu Palathingal <148897727+annaibm@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:52:10 -0500 Subject: [PATCH] Remove check_version in common_functions.sh - remove check_version function - remove set_version function resolves : adoptium#4949 Signed-off-by: Anna Babu Palathingal --- external/build_image.sh | 1 - external/common_functions.sh | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/external/build_image.sh b/external/build_image.sh index 30a6c5e914..78a4e84da9 100755 --- a/external/build_image.sh +++ b/external/build_image.sh @@ -42,7 +42,6 @@ check_external_custom=$9 if [[ "${check_external_custom}" == "0" ]]; then set_test $1 fi -set_version $2 set_vm $3 set_os $4 set_package $5 diff --git a/external/common_functions.sh b/external/common_functions.sh index 0ff9f09316..13686be4e6 100755 --- a/external/common_functions.sh +++ b/external/common_functions.sh @@ -32,30 +32,6 @@ supported_builds="full" # Supported tests 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" -function check_version() { - version=$1 - - for current_version in ${supported_versions} - do - if [[ "${version}" == "${current_version}" ]]; then - return 1 - fi - done - - return 0 -} - -# Set a valid version -function set_version() { - version=$1 - - if (check_version ${version}); then - echo "ERROR: Invalid Version: ${version}" - echo "Usage: $0 [${supported_versions}]" - exit 1 - fi -} - function check_os() { os=$1