]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(UEFI): change the order of execution to fix regression
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 23 Sep 2025 01:11:48 +0000 (21:11 -0400)
committerBenjamin Drung <bdrung@ubuntu.com>
Wed, 24 Sep 2025 12:21:08 +0000 (14:21 +0200)
6ae7ac0 regressed testing on Alpine and Azure Linux as
on those platforms the test is no longer skipped.

Make sure the test is skipped if stub is not available.

test/TEST-12-UEFI/test.sh

index 326f801d59f6801a62df3242878839d1e0803ad9..4dbc8ad4c3155c94c6e7433e34b6b6d73d2b8e84 100755 (executable)
@@ -16,12 +16,14 @@ test_check() {
         return 1
     fi
 
-    [[ -n "$(ovmf_code)" ]]
-
     if command -v systemd-detect-virt > /dev/null && ! systemd-detect-virt -c &> /dev/null; then
         echo "This test assumes that it runs inside a CI container."
         return 1
     fi
+
+    if [[ -z "$(ovmf_code)" ]]; then
+        return 1
+    fi
 }
 
 client_run() {