From: Daan De Meyer Date: Tue, 28 May 2024 13:56:47 +0000 (+0200) Subject: mkosi: Run integration tests as root X-Git-Tag: v256-rc4~91^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d12fedd25ea35f17584066e6d3a3e5884e1d2890;p=thirdparty%2Fsystemd.git mkosi: Run integration tests as root This allows running integration tests that support it in nspawn instead of qemu. This both gives extra coverage and speeds things up. --- diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 140828166b9..be5f1edfee9 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -182,7 +182,7 @@ jobs: run: meson compile -C build mkosi - name: Run integration tests - run: meson test -C build --no-rebuild --suite integration-tests --print-errorlogs --no-stdsplit --num-processes "$(($(nproc) - 1))" + run: sudo meson test -C build --no-rebuild --suite integration-tests --print-errorlogs --no-stdsplit --num-processes "$(($(nproc) - 1))" - name: Archive failed test journals uses: actions/upload-artifact@v4 diff --git a/test/TEST-85-NETWORK/meson.build b/test/TEST-85-NETWORK/meson.build index 629275883c4..47ec02940ee 100644 --- a/test/TEST-85-NETWORK/meson.build +++ b/test/TEST-85-NETWORK/meson.build @@ -25,6 +25,7 @@ foreach testcase : network_testcases 'systemd.setenv=TEST_MATCH_TESTCASE=@0@'.format(testcase) ], 'priority' : 10, + 'vm' : true, }, ] endforeach