]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(RAID-DEG): fix running test out of tree
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 12 Jun 2024 17:02:34 +0000 (19:02 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 13 Jun 2024 00:41:40 +0000 (20:41 -0400)
`test-functions` defines `DRACUT` to allow running the test out of tree
against the system-installed dracut.

Fixes: 55e7b7ce6fcf ("test(RAID-DEG): make test 12 use the test dracut modules")
test/TEST-12-RAID-DEG/test.sh

index 5c1b94e5ba1ce50c627e91243a8a40d7b9cdd789..a03b4390af929e9c9caa11945a5551b5048a5160 100755 (executable)
@@ -55,7 +55,7 @@ test_run() {
 }
 
 test_setup() {
-    "$basedir"/dracut.sh -N -l --keep --tmpdir "$TESTDIR" \
+    "$DRACUT" -N -l --keep --tmpdir "$TESTDIR" \
         -m "test-root" \
         -f "$TESTDIR"/initramfs.root "$KVERSION" || return 1
     mkdir -p "$TESTDIR"/overlay/source && mv "$TESTDIR"/dracut.*/initramfs/* "$TESTDIR"/overlay/source && rm -rf "$TESTDIR"/dracut.*