mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
mkosi: Preserve environment when running integration tests with sudo
Otherwise we won't detect we're running in Github Actions and will show the wrong command to fetch the journal.
This commit is contained in:
parent
0916532e4b
commit
465d302d48
2
.github/workflows/mkosi.yml
vendored
2
.github/workflows/mkosi.yml
vendored
@ -182,7 +182,7 @@ jobs:
|
||||
run: meson compile -C build mkosi
|
||||
|
||||
- name: Run integration tests
|
||||
run: sudo meson test -C build --no-rebuild --suite integration-tests --print-errorlogs --no-stdsplit --num-processes "$(($(nproc) - 1))"
|
||||
run: sudo --preserve-env 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user