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.
This commit is contained in:
Daan De Meyer 2024-05-28 15:56:47 +02:00
parent 1e5a1bbe02
commit d12fedd25e
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -25,6 +25,7 @@ foreach testcase : network_testcases
'systemd.setenv=TEST_MATCH_TESTCASE=@0@'.format(testcase)
],
'priority' : 10,
'vm' : true,
},
]
endforeach