On Fri, 20 Nov 2026 22:02:11 GMT, Andy Goryachev <[email protected]> wrote:

>> We recently added a headful Ubuntu 26.04 system to our headful test runs on 
>> Jenkins. We have a number of test failures on that platform. Each of these 
>> failures is tracked by a JBS bug. This PR skips the failing tests until the 
>> underlying bug is fixed.
>> 
>> I added a test utility method, "isUbuntu2604". The same mechanism can be 
>> used for other Linux variants if the need arises.
>> 
>> With the PR, the headful test run on Ubuntu 26.04 is green.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> tests/system/src/test/java/test/util/Util.java line 500:
> 
>> 498:         if (id == null) return false;
>> 499:         String version_id = osReleaseProps.get("VERSION_ID");
>> 500:         if (version_id == null) return false;
> 
> fail fast if `version_id` is not `26.04`

We need to do the below replacement to elide quotes anyway. There's nothing 
else to short-circuit after that.

One improvement I did think of is to only read the property map from 
`os-release` once and save it in a static field. It is usually called only once 
or twice per test class, but it would be an easy improvement.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2377#discussion_r4648365930

Reply via email to