]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Clean up recursor-test
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Mon, 24 Jul 2023 17:27:30 +0000 (13:27 -0400)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 17:27:30 +0000 (13:27 -0400)
* remove tabs
* remove double quotes around a number -- if the value is empty it'd crash anyway

regression-tests/recursor-test

index e75817b5204d216841b54f4bda279c6178d22d93..e5c4721901d70f31316996d1eb825886852a4c37 100755 (executable)
@@ -85,10 +85,10 @@ touch failed_tests passed_tests
 
 ANANSWER=$[(100*(${DBT_QUEUED}-${DBT_ERRORS}-${DBT_TIMEOUTS}) )/${DBT_QUEUED}]
 
-if [ "$ANANSWER" -ge $THRESHOLD ]
+if [ $ANANSWER -ge $THRESHOLD ]
 then
-        echo recursor-bulktest >> passed_tests
-        RETVAL=0
+    echo recursor-bulktest >> passed_tests
+    RETVAL=0
 else
     echo recursor-bulktest >> failed_tests
     RETVAL=1