]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Be smarter about detecting the mkosi configuration directory 36954/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Apr 2025 16:15:04 +0000 (18:15 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 3 Apr 2025 08:21:54 +0000 (10:21 +0200)
commit5b21c43e989ef42975d64d4991aa148d2d8d2312
tree19179dc972fc09b2f38f8fda675b104679e61f92
parent342d21ef19391fdb7fc41548ad48f5b1e7423943
test: Be smarter about detecting the mkosi configuration directory

Instead of always looking up two directories from the
test/integration-tests/meson.build file, let's search in up to 4
parent directories from the given meson project source root. This
allows us to just pass in meson.project_source_root() to
integration-test-wrapper.py instead of having to pass in a fixed
relative offset from the current meson file.

It'll also allow us to install the integration tests and mkosi
configuration in the future without breaking the standalone
integrationt tests functionality;
test/integration-tests/integration-test-wrapper.py
test/integration-tests/meson.build