From d12fedd25ea35f17584066e6d3a3e5884e1d2890 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 28 May 2024 15:56:47 +0200 Subject: [PATCH] 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. --- .github/workflows/mkosi.yml | 2 +- test/TEST-85-NETWORK/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3