]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change none output postrm no file
authorBastian Dehn <hhaalo@arcor.de>
Fri, 17 Jul 2026 11:34:47 +0000 (13:34 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 17 Jul 2026 11:34:47 +0000 (13:34 +0200)
src/debian/postrm
tests/postrm.bats

index b39374d641e048e4f0be8665fee07c9e97d15926..b3c3171928364f17b8d72a54aa363f826a066d70 100755 (executable)
@@ -3,9 +3,7 @@ set -e
 
 find_config()
 {
-       [ ! -f "$DLLCONFIG" ] \
-               && echo "WARNING: $DLLCONFIG does not exist" \
-               && return 1
+       [ -f "$DLLCONFIG" ] || return 1
        echo "found $DLLCONFIG"
 }
 
index 6d529ce1652a83d201fe69425330e992b5715ede..53dbb559715b5372449401efaa71a0290c3d93e9 100755 (executable)
@@ -18,7 +18,7 @@ teardown() {
        run ../src/debian/postrm
 
        assert_success
-       assert_output "WARNING: ../build/dll-not-exists.conf does not exist"
+       assert_output ""
 }
 
 @test "delete one entry kds_s2000w_net from dll.conf {