]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Use DEBUG_TDIR from environment in mini_tdir.sh for debugging.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 4 Oct 2022 22:48:20 +0000 (00:48 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 4 Oct 2022 23:13:29 +0000 (01:13 +0200)
- Fix string comparison in mini_tdir.sh.

doc/Changelog
testcode/mini_tdir.sh

index 8c7483f88c62ab1ad99dbc76141363ab4d97024a..6823a60ba193ae63855cf4598ee34a2df27ffa0b 100644 (file)
@@ -1,3 +1,7 @@
+5 October 2022: George
+       - Use DEBUG_TDIR from environment in mini_tdir.sh for debugging.
+       - Fix string comparison in mini_tdir.sh.
+
 4 October 2022: George
        - Merge #764: Leniency for target discovery when under load (for
          NRDelegation changes).
index 3b0719369847aae41aee281178d0db64948223e0..624ecdf7fe5b4116d86058424ac0fc1424eb2488 100755 (executable)
@@ -8,6 +8,7 @@ fi
 
 # This will keep the temporary directory around and return 1 when the test failed.
 DEBUG=0
+test -n "$DEBUG_TDIR" && DEBUG=1
 
 quiet=0
 if test "$1" = "-q"; then
@@ -213,7 +214,7 @@ if test $DEBUG -eq 0; then
                rm -rf $dir
        fi
 else
-       if test $success == "no"; then
+       if test $success = "no"; then
                exit 1
        fi
        exit 0