1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-29 06:50:16 +03:00

mkosi: Add back --preserve-env when running integrationt tests

The test wrapper script depends on various github actions environment
variables so let's make sure those are propagated.

(cherry picked from commit 6733b07d43f3524b66b5ab79a96cad192d2280fc)
This commit is contained in:
Daan De Meyer 2025-01-23 10:35:06 +01:00
parent e71c0f7601
commit 286d0a9464
2 changed files with 8 additions and 2 deletions

View File

@ -104,7 +104,10 @@ jobs:
- name: Run integration tests
run: |
sudo mkosi sandbox \
# --preserve-env makes sure all the github actions environment variables are propagated which are
# used in integration-test-wrapper.py to construct the `gh` command line to download the journals
# of failed tests.
sudo --preserve-env mkosi sandbox \
meson test \
-C build \
--no-rebuild \

View File

@ -209,7 +209,10 @@ jobs:
MAX_LINES=()
fi
sudo mkosi sandbox \
# --preserve-env makes sure all the github actions environment variables are propagated which are
# used in integration-test-wrapper.py to construct the `gh` command line to download the journals
# of failed tests.
sudo --preserve-env mkosi sandbox \
env \
TEST_PREFER_QEMU=${{ matrix.vm }} \
TEST_SKIP=${{ matrix.skip }} \