]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: add empty default test_cleanup implementation
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 4 Jun 2023 14:40:06 +0000 (14:40 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 6 Jun 2023 13:00:32 +0000 (15:00 +0200)
13 files changed:
test/TEST-01-BASIC/test.sh
test/TEST-02-SYSTEMD/test.sh
test/TEST-03-USR-MOUNT/test.sh
test/TEST-04-FULL-SYSTEMD/test.sh
test/TEST-10-RAID/test.sh
test/TEST-11-LVM/test.sh
test/TEST-12-RAID-DEG/test.sh
test/TEST-13-ENC-RAID-LVM/test.sh
test/TEST-14-IMSM/test.sh
test/TEST-15-BTRFSRAID/test.sh
test/TEST-16-DMSQUASH/test.sh
test/TEST-17-LVM-THIN/test.sh
test/test-functions

index e63c9c0d317be768b715cea8f1c551bd7386c3fd..5e19278ebe8dd41bd2f09bb72dd89377bd98c77b 100755 (executable)
@@ -68,9 +68,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 4360dfec3d19c64e2705046cc0c994f7a5e1aa12..b574951dfe68f6d9378e00e2ec45244260ceee40 100755 (executable)
@@ -73,9 +73,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 5c75e23f75875014efd1c06e52d8825dfd78fce3..029d12f0fccf003b6b5b95b3d0ddf11c43d380fb 100755 (executable)
@@ -93,9 +93,5 @@ test_setup() {
     rm -rf -- "$TESTDIR"/overlay
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index b48c278d1916a0cce11265c24846aaed2d0afc38..f54f7ebb579f6ab5331f5e6fe2b0292f4ac1eed2 100755 (executable)
@@ -160,9 +160,5 @@ EOF
     rm -rf -- "$TESTDIR"/overlay
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index d9121bb9c350c39fc5fb0a371b623f9df20f403d..28a1b02351969fc2a193e8493b604459b3c88640 100755 (executable)
@@ -120,9 +120,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 2193ab56bde787ad16db07f1a316e2ec67e2a3e7..710fdf485a2a27fec9f4fa1ccd30ab78d67f24df 100755 (executable)
@@ -113,9 +113,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index b926dc9812a9356a5c11b0bcbe947500a6335d21..1503476bc535bd9e0b02f16d85972402d95ee326 100755 (executable)
@@ -156,9 +156,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index e1a2aba1a39d19d242b06f7a7d2aa8838355b48a..c491e5d9c71ddc3404a1667b7cc3472bd113767f 100755 (executable)
@@ -154,9 +154,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 6db053ee6de5ec11d25a7c148537dc3b6394e013..61f3ad15a3619787fd4738f67fa87126c1cd8595 100755 (executable)
@@ -144,9 +144,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 9c832d3723226488f977d74560f648bf5c48abce..fe16e1b2f60e343d55351e0fe76ad033de8eb522 100755 (executable)
@@ -119,9 +119,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index 78f1c5badc4fb0b0811d6028bf39c5045cc393a0..30b08b0f7c8cb54dbda9b134c3f081d947c2e6ca 100755 (executable)
@@ -115,9 +115,5 @@ test_setup() {
     rm -rf -- "$TESTDIR"/overlay
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index fa983dc37398cd0775667fb7adb39e799b3cf546..aff5dc54060fb60c906d70ac3bcf74d156326fdd 100755 (executable)
@@ -111,9 +111,5 @@ test_setup() {
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
 }
 
-test_cleanup() {
-    return 0
-}
-
 # shellcheck disable=SC1090
 . "$testdir"/test-functions
index b4de8c519470b15436aa03850beba06863c4ac8b..b0c538d955964e41b77e3f78498666e16c1f09bc 100644 (file)
@@ -20,6 +20,10 @@ command -v test_check &> /dev/null || test_check() {
     :
 }
 
+command -v test_cleanup &> /dev/null || test_cleanup() {
+    :
+}
+
 # terminal sequence to set color to a 'success' color (currently: green)
 function SETCOLOR_SUCCESS() { echo -en '\033[0;32m'; }
 # terminal sequence to set color to a 'failure' color (currently: red)