]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Implement TEST_PREFER_QEMU and use it in one of the mkosi jobs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Dec 2024 13:01:08 +0000 (14:01 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Dec 2024 15:43:11 +0000 (16:43 +0100)
commite022e73e3fede1a8d7800a6ca87291ca4075681b
treef520ee53213d41b258a01745639c1a54f809578f
parent82d00f0cc67ae9af6728213340ff868ba8c2ae33
test: Implement TEST_PREFER_QEMU and use it in one of the mkosi jobs

We want to make sure the integration tests that don't require qemu
can run successfully both in an nspawn container and in a qemu VM.
So let's add one more knob TEST_PREFER_QEMU=1 to run jobs that normally
require nspawn in qemu instead.

Running these tests in qemu is also possible by not running as root but
that's very implicit so we add an explicit knob instead to make it explicit
that we want to run these in qemu instead of nspawn.
.github/workflows/mkosi.yml
test/README.testsuite
test/integration-test-wrapper.py