]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(SYSTEMD): remove subtests that do not increase test coverage
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 25 Nov 2024 21:06:01 +0000 (16:06 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Mon, 25 Nov 2024 22:06:20 +0000 (17:06 -0500)
Testing without an option does not really increase test coverage, if
we anyways test both with "ro" and "rw".

It is not actually tested if volatile mode is actually enabled.
Let's remove these tests steps until there is an actual assertion
for these modes.

test/TEST-41-FULL-SYSTEMD/test.sh
test/TEST-42-SYSTEMD-INITRD/test.sh

index dc2e7c9a32273a8a97f7ffeb47917a8e6e3bef00..3aad8a654c200e8aa6972331d2cc2193e6013066 100755 (executable)
@@ -44,14 +44,9 @@ client_run() {
 }
 
 test_run() {
-    client_run "no option specified" || return 1
     client_run "readonly root" "ro" || return 1
     client_run "writeable root" "rw" || return 1
 
-    # volatile mode
-    client_run "volatile=overlayfs root" "systemd.volatile=overlayfs" || return 1
-    client_run "volatile=state root" "systemd.volatile=state" || return 1
-
     # shellcheck source=$TESTDIR/luks.uuid
     . "$TESTDIR"/luks.uuid
 
index 2caf1e2025fe208ef1071c544fb54571211d6c38..addb9c1dd327943a71fb9cdb8c9b60fba59e6575 100755 (executable)
@@ -34,13 +34,8 @@ client_run() {
 }
 
 test_run() {
-    client_run "no option specified" || return 1
     client_run "readonly root" "ro" || return 1
     client_run "writeable root" "rw" || return 1
-
-    # volatile mode
-    client_run "volatile=overlayfs root" "systemd.volatile=overlayfs" || return 1
-    client_run "volatile=state root" "systemd.volatile=state" || return 1
 }
 
 test_setup() {