]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: Fix variable usage with sudo
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 5 Apr 2022 13:02:45 +0000 (15:02 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 14 Apr 2022 20:35:40 +0000 (22:35 +0200)
The variable assignments should be part of the command passed to sudo,
otherwise they'll be ignored.

.github/workflows/ci.yml

index be771710b8c8fd24bc3a42c9949b17d38ee8ee1a..196b076797e58ee21cffb0282a800ecfda1348cb 100644 (file)
@@ -195,7 +195,7 @@ jobs:
         sync-uri = https://raw.githubusercontent.com/257/binpkgs/main
         EOF
 
-        MKOSI_TEST_DEFAULT_VERB=boot sudo python3 -m pytest -m integration tests
+        sudo MKOSI_TEST_DEFAULT_VERB=boot python3 -m pytest -m integration tests
 
     - name: Build/Boot ${{ matrix.distro }}/${{ matrix.format }} UEFI UKI
       run: |
@@ -204,7 +204,7 @@ jobs:
         BootProtocols=uefi
         EOF
 
-        MKOSI_TEST_DEFAULT_VERB=qemu sudo python3 -m pytest -m integration tests
+        sudo MKOSI_TEST_DEFAULT_VERB=qemu python3 -m pytest -m integration tests
 
     - name: Build/Boot ${{ matrix.distro }}/${{ matrix.format }} UEFI
       run: |
@@ -216,7 +216,7 @@ jobs:
         KernelCommandLine=systemd.volatile=overlay
         EOF
 
-        MKOSI_TEST_DEFAULT_VERB=qemu sudo python3 -m pytest -m integration tests
+        sudo MKOSI_TEST_DEFAULT_VERB=qemu python3 -m pytest -m integration tests
 
     - name: Build/Boot ${{ matrix.distro }}/${{ matrix.format }} BIOS
       run: |
@@ -226,4 +226,4 @@ jobs:
         WithUnifiedKernelImages=no
         EOF
 
-        MKOSI_TEST_DEFAULT_VERB=qemu sudo python3 -m pytest -m integration tests
+        sudo MKOSI_TEST_DEFAULT_VERB=qemu python3 -m pytest -m integration tests