From: Daan De Meyer Date: Thu, 30 May 2024 10:41:34 +0000 (+0200) Subject: mkosi: Preserve environment when running integration tests with sudo X-Git-Tag: v256-rc4~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=465d302d48cf0e788b9ff23162127a64b5621acb;p=thirdparty%2Fsystemd.git 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. --- diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index be5f1edfee9..c990a6acf0e 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