From d69f9650653f01286d8cdc197d12f63338023589 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 16 Jul 2026 19:55:06 +0200 Subject: [PATCH] change unset var teardown postinst --- tests/postinst.bats | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.47.3