]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/test: enhanced java s3-tests change setting of JAVA_HOME 68233/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Apr 2026 00:53:34 +0000 (20:53 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Apr 2026 02:19:48 +0000 (22:19 -0400)
Under Centos 9 the Java 8 version is recognized by the substring
"java-1.8" rather than "java-8". So the grep has been modified to
accept either.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit a49d4446e4d84b28273b460b85a193011a9c4ed8)

qa/tasks/s3tests_java.py

index 03ba946e7820ac65859fdb2ef2a4b3e7137203bf..0fe5b12f8556de96528ced7fde53b0609e9dcab1 100644 (file)
@@ -284,7 +284,7 @@ class S3tests_java(Task):
             args = ['cd',
                     '{tdir}/s3-tests-java'.format(tdir=testdir),
                     run.Raw('&&'),
-                    run.Raw('JAVA_HOME=$(ls -d /usr/lib/jvm/* | grep java-8 | head -n 1)'),
+                    run.Raw('JAVA_HOME=$(ls -d /usr/lib/jvm/* | grep -E java-8\|java-1\.8 | head -n 1)'),
                     '/opt/gradle/gradle/bin/gradle', 'clean', 'test',
                     '--rerun-tasks', '--no-build-cache',
                     ]