]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: remove duplicate overlay removal
authorBenjamin Drung <benjamin.drung@canonical.com>
Sat, 7 Feb 2026 12:31:44 +0000 (13:31 +0100)
committerLaszlo <1522773+LaszloGombos@users.noreply.github.com>
Sat, 7 Feb 2026 13:16:13 +0000 (08:16 -0500)
Removing `overlay` is done twice. Remove those duplicate calls.

test/TEST-71-ISCSI-MULTI/test.sh
test/TEST-72-NBD/test.sh

index 099fd994352011da07b8f3cbe740402075976181..f403911921a64121a59a4947fee71c3eee2d77a1 100755 (executable)
@@ -164,7 +164,6 @@ test_setup() {
     rm -- "$TESTDIR"/marker.img
 
     # Create server root filesystem
-    rm -rf -- "$TESTDIR"/overlay
     call_dracut --tmpdir "$TESTDIR" \
         --add-confdir test-root \
         -a "$USE_NETWORK iscsi" \
index 41806c27211b4b51a98a9a17868ce4eaf138c144..9b391e2f570c9ae0e587c5e1a9f7ccf0aaf35d7d 100755 (executable)
@@ -203,7 +203,6 @@ make_encrypted_root() {
 }
 
 make_client_root() {
-    rm -fr "$TESTDIR"/overlay
     build_client_rootfs "$TESTDIR/overlay/source"
     inst_multiple ip
     inst_init ./client-init.sh "$TESTDIR"/overlay/source
@@ -252,9 +251,6 @@ test_setup() {
     make_client_root
     make_server_root
 
-    rm -fr "$TESTDIR"/overlay
-    # Make the test image
-
     # shellcheck source=$TESTDIR/luks.uuid
     . "$TESTDIR"/luks.uuid