]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(DRACUT-CPIO): correct test_check condition
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 16 Jan 2026 12:15:03 +0000 (07:15 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 16 Jan 2026 23:33:38 +0000 (18:33 -0500)
Partial revert to correct test_check condition.

The current code checks if dracut-cpio is found in PATH and skips
the test in case dracut-cpio is found.

Follow-up to b687756 .

test/TEST-82-DRACUT-CPIO/test.sh

index dbc667cd320f5003579e81d70bf3b61994437c4a..b303841922367930929f5fd6ad44603904a681fe 100755 (executable)
@@ -8,7 +8,7 @@ TEST_DESCRIPTION="kernel cpio extraction tests for dracut-cpio"
 # see dracut-cpio source for unit tests
 
 test_check() {
-    if command -v dracut-cpio &> /dev/null; then
+    if ! [[ -x "$PKGLIBDIR/dracut-cpio" ]]; then
         echo "Test needs dracut-cpio... Skipping"
         return 1
     fi