mkosi: Run two more mkosi commands with sudo

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.
This commit is contained in:
Daan De Meyer
2025-01-22 22:25:51 +01:00
parent e887b3006c
commit 007d255d87
2 changed files with 2 additions and 2 deletions
+1 -1
View 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
+1 -1
View 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=()