Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356187

TestJcmd.java may incorrectly parse podman version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 11, 17, 21, 24, 25
    • hotspot
    • b22

        There are more variants of "podman version string" than we initially thought.

        For example, TestJcmd.java fail to parse "podman version 4.9.4-rhel".

        This leads to the test being skipped.

        ```
        podman --version returning: podman version 4.9.4-rhel
        Failed to parse podman version: podman version 4.9.4-rhel
        ----------System.err:(12/725)----------
        jtreg.SkippedException: Podman version too old for this test. Expected >= 3.3.1
        at TestJcmd.main(TestJcmd.java:68)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:842)
        ```

              ibereziuk Ivan Bereziuk
              ibereziuk Ivan Bereziuk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: