[jdk26] RFR: 8371503: RETAIN_IMAGE_AFTER_TEST do not work for some tests

Andrey Turbanov aturbanov at openjdk.org
Wed Dec 17 10:43:54 UTC 2025


On Mon, 15 Dec 2025 14:27:14 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [34f24131](https://github.com/openjdk/jdk/commit/34f241317ecd7473cfb6dcc2e6e5cf3a40299e2c) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by SendaoYan on 15 Dec 2025 and was reviewed by Leonid Mesnik and David Holmes.
> 
> Thanks!

test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java line 293:

> 291:      */
> 292:     public static void removeDockerImage(String imageNameAndTag) throws Exception {
> 293:         if(!DockerTestUtils.RETAIN_IMAGE_AFTER_TEST) {

Suggestion:

        if (!DockerTestUtils.RETAIN_IMAGE_AFTER_TEST) {

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28826#discussion_r2626526625


More information about the serviceability-dev mailing list