]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Run integration tests as root 33065/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 May 2024 13:56:47 +0000 (15:56 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 29 May 2024 12:10:50 +0000 (14:10 +0200)
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
test/TEST-85-NETWORK/meson.build

index 140828166b969894320d6295d4e734d992cfbcaa..be5f1edfee962cfaa2c69ecfbe45da43f826b1eb 100644 (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
index 629275883c4914fb8320fb571eaf463a9af132d5..47ec02940ee616df7c0f7637048c91e7cd33b02e 100644 (file)
@@ -25,6 +25,7 @@ foreach testcase : network_testcases
                                 'systemd.setenv=TEST_MATCH_TESTCASE=@0@'.format(testcase)
                         ],
                         'priority' : 10,
+                        'vm' : true,
                 },
         ]
 endforeach