]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add teardown postinst
authorBastian Dehn <hhaalo@arcor.de>
Thu, 16 Jul 2026 15:06:11 +0000 (17:06 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 16 Jul 2026 15:06:11 +0000 (17:06 +0200)
tests/postinst.bats

index fb3e353fe23969ee5ec14840cc587d32a71f5eb4..589d8dcef5e666f019a32eacf5ee219930e3dcbd 100755 (executable)
@@ -4,10 +4,13 @@ setup() {
        bats_load_library bats-support
        bats_load_library bats-assert
        mkdir --parents ../build
-       rm -rf ../build/dll.conf
        touch ../build/dll.conf
 }
 
+teardown() {
+       rm -rf ../build/dll.conf
+}
+
 @test "ignore file does not exists" {
        export DLLCONFIG="../build/dll-not-exists.conf"