mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.3k stars 1.52k forks source link

mtest: Set MESON_TEST_ITERATION to the current iteration of the test #13177

Closed DaanDeMeyer closed 1 week ago

DaanDeMeyer commented 2 weeks ago

When running our integration tests in systemd we depend on each test having a unique name. This is always the case unless --repeat is used, in which case multiple tests with the same name run concurrently which causes issues when allocating resources that use the test name as the identifier.

Let's set MESON_TEST_ITERATION to the current iteration of the test so we can use $TEST_NAME-$TEST_ITERATION as our test identifiers which will avoid these issues.

DaanDeMeyer commented 1 week ago

@tristan957 Anything missing for this to be merged?