1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +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.
This commit is contained in:
Daan De Meyer 2025-01-23 10:35:06 +01:00
parent e5038e63e9
commit 6733b07d43
2 changed files with 8 additions and 2 deletions

View File

@ -113,7 +113,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 }} \