From 465d302d48cf0e788b9ff23162127a64b5621acb Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 30 May 2024 12:41:34 +0200 Subject: [PATCH] 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. --- .github/workflows/mkosi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index be5f1edfee..c990a6acf0 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -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