]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Run two more mkosi commands with sudo
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Jan 2025 21:24:36 +0000 (22:24 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 27 Jan 2025 18:04:50 +0000 (19:04 +0100)
Running some mkosi commands as root and other not can lead to cache
invalidations with the latest version, so make sure we run everything
as root after we've built the tools tree.

(cherry picked from commit 007d255d870bee37db03da1875c0387598bdedde)

.github/workflows/coverage.yml
.github/workflows/mkosi.yml

index c98ec27385eb63511c16db9bfb539c45592f08ac..e337cc55d1388e778a06dc9cd30e23c519f42969 100644 (file)
@@ -139,7 +139,7 @@ jobs:
           sudo --preserve-env mkosi sandbox lcov --ignore-errors inconsistent,inconsistent "${lcov_args[@]}" --output-file build/test/coverage/everything.coverage-info
 
       - name: List coverage report
-        run: mkosi sandbox lcov --ignore-errors inconsistent,inconsistent --list build/test/coverage/everything.coverage-info
+        run: sudo mkosi sandbox lcov --ignore-errors inconsistent,inconsistent --list build/test/coverage/everything.coverage-info
 
       - name: Coveralls
         uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8
index 47a43c689f80ce33322f4c01fa9b91d27504b0e6..c589a0c1fa467d05f4f6881f16a8da2bcdc6eeda 100644 (file)
@@ -204,7 +204,7 @@ jobs:
 
       - name: Run integration tests
         run: |
-          if [[ "$(mkosi sandbox meson test --help)" == *"--max-lines"* ]]; then
+          if [[ "$(sudo mkosi sandbox meson test --help)" == *"--max-lines"* ]]; then
               MAX_LINES=(--max-lines 300)
           else
               MAX_LINES=()