Skip to content

Commit 5a29c49

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 5a29c49

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
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

-24
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,6 @@ supported_builds="full"
3232
# Supported tests
3333
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"
3434

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-
5935
function check_os() {
6036
os=$1
6137

0 commit comments

Comments
 (0)