From 8c95479ebd4b9daee097da6f6c10eebd20f747a6 Mon Sep 17 00:00:00 2001 From: LongyuZhang Date: Tue, 10 Sep 2024 14:56:23 -0400 Subject: [PATCH] Fix Pingperf JDK version comparison (#5578) Fix the JDK version comparison in Pingperf tests. Issue: Runtimes_backlog/1515 Signed-off-by: LongyuZhang --- external/criu/pingPerf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/criu/pingPerf.sh b/external/criu/pingPerf.sh index 6f7842fd3c..104c5d5903 100755 --- a/external/criu/pingPerf.sh +++ b/external/criu/pingPerf.sh @@ -50,7 +50,7 @@ getSemeruDockerfile() { findCommandAndReplace '\-H \"\${CRIU_AUTH_HEADER}\"' '--user \"\${DOCKER_REGISTRY_CREDENTIALS_USR}:\${DOCKER_REGISTRY_CREDENTIALS_PSW}\"' $semeruDockerfile ";" findCommandAndReplace 'RUN --mount.*' 'ARG DOCKER_REGISTRY_CREDENTIALS_USR \n ARG DOCKER_REGISTRY_CREDENTIALS_PSW \n RUN set -eux; \\' $semeruDockerfile # in 21-ea, /opt/java/openjdk/legal/java.base/LICENSE does not exist. No need to replace - if [[ $jdkVersion < 21 ]]; then + if [[ $jdkVersion -lt 21 ]]; then findCommandAndReplace '\/opt\/java\/openjdk\/legal\/java.base\/LICENSE \/licenses;' "\/opt\/java\/openjdk\/legal\/java.base\/LICENSE \/licenses\/;" $semeruDockerfile fi else # docker_os is ubuntu