]> 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>
Wed, 22 Jan 2025 21:25:51 +0000 (22:25 +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.

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

index abe4bbd4679c6a8f6a7c29a7ddde27989109d7f0..bca6bc51f5e3c024f7cdf660b01e20c1405bebc9 100644 (file)
@@ -148,7 +148,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=()