]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Add back --preserve-env when running integrationt tests
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 23 Jan 2025 09:35:06 +0000 (10:35 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 23 Jan 2025 11:18:21 +0000 (12:18 +0100)
The test wrapper script depends on various github actions environment
variables so let's make sure those are propagated.

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

index 0b6c5dd98edcaf0273740155c3e68f69e0804be6..e76794116bff77ea6c6d9642a1572003b623be39 100644 (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 \
index 7a4c7b6d16ec8521a6321d2e239d26e749d8a8c2..6f6df0ddf935abc6d1b1bc1e47937690290a9a4c 100644 (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 }} \