From: Bastian Dehn Date: Thu, 16 Jul 2026 17:55:06 +0000 (+0200) Subject: change unset var teardown postinst X-Git-Tag: v1.1.35^2~3^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=d69f9650653f01286d8cdc197d12f63338023589;p=sane-kds-s2000w-net.git change unset var teardown postinst --- diff --git a/tests/postinst.bats b/tests/postinst.bats index 1d1352c..1af18c9 100755 --- a/tests/postinst.bats +++ b/tests/postinst.bats @@ -9,6 +9,7 @@ setup() { teardown() { rm -rf ../build/dllpostinst.conf + unset DLLCONFIG } @test "ignore file does not exists" { @@ -18,7 +19,6 @@ teardown() { assert_success assert_output "ERROR: ../build/dll-not-exists.conf does not exist" - unset DLLCONFIG } @test "add entry kds_s2000w_net dll.conf" { @@ -31,7 +31,6 @@ teardown() { assert_line --index 1 "add kds_s2000w_net to ../build/dllpostinst.conf" assert_equal "$(cat ../build/dllpostinst.conf)" "kds_s2000w_net" assert_equal "$(cat ../build/dllpostinst.conf | wc --lines)" "1" - unset DLLCONFIG } @test "entry exists in dll.conf do nothing" { @@ -44,5 +43,4 @@ teardown() { assert_output "found ../build/dllpostinst.conf" assert_equal "$(cat ../build/dllpostinst.conf)" "kds_s2000w_net" assert_equal "$(cat ../build/dllpostinst.conf | wc --lines)" "1" - unset DLLCONFIG } \ No newline at end of file