]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: execute assertion.sh instead of sourcing it
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 28 Jan 2026 19:21:25 +0000 (20:21 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 29 Jan 2026 12:24:07 +0000 (07:24 -0500)
The `assertion.sh` files do not need to access from `test-init.sh`. So
execute `assertion.sh` instead of sourcing it.

test/modules.d/70test-root/test-init.sh

index 2ea5c1a28c8f0da5b54561e759e6373d84298e0d..02ce762414ec4477fdb3fc2a19e2895efe28e3e4 100755 (executable)
@@ -43,7 +43,7 @@ fi
 
 # run the test case specific test assertion if exists
 if [ -x "/assertion.sh" ]; then
-    /assertion.sh
+    /assertion.sh
 fi
 
 if [ -s /run/failed ]; then