]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: only pass TEST_FSTYPE to the CI container if it is set
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 28 Sep 2025 11:42:36 +0000 (07:42 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 28 Sep 2025 12:33:18 +0000 (08:33 -0400)
Follow-up to 58007a0 to resolve the CI coverage regression
where TEST_FSTYPE defaulted to ext4 in all test containers.

test/test.sh

index 044050bfc1db8752924d8faaed671281af65b15d..1d7258f62fd818a8e149262938eb3e435148f372 100755 (executable)
@@ -49,7 +49,7 @@ fi
 # clear previous test run
 TARGETS='clean all install check' "$PODMAN" run --rm -it \
     --device=/dev/kvm --privileged \
-    -e V -e TESTS -e TEST_RUN_ID -e TARGETS -e MAKEFLAGS -e TEST_DRACUT_ARGS -e TEST_FSTYPE \
+    -e V -e TESTS -e TEST_RUN_ID -e TARGETS -e MAKEFLAGS -e TEST_DRACUT_ARGS ${TEST_FSTYPE:+-e TEST_FSTYPE} \
     -v "$PWD"/:/z \
     "$CONTAINER" \
     /z/test/test-container.sh