]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns-udp-double-request-response: fix check
authorJason Ish <ish@unx.ca>
Wed, 1 Mar 2017 17:01:10 +0000 (11:01 -0600)
committerJason Ish <ish@unx.ca>
Wed, 1 Mar 2017 17:01:10 +0000 (11:01 -0600)
dns-udp-double-request-response/check.sh

index fbee97b5eb2b384ebf15989d752361714ba7a7c1..efb390dca031c8f19a13a656e9e4c4e445ba004a 100755 (executable)
@@ -2,14 +2,14 @@
 
 # Check queries.
 c=$(cat output/eve.json | jq -c 'select(.dns.type == "query")' | wc -l)
-if [ "${c}" != 2 ]; then
+if [ "${c}" -ne 2 ]; then
     echo "error: expected 2 DNS queries, got ${c}"
     exit 1
 fi
 
 # Check answer count.
 c=$(cat output/eve.json | jq -c 'select(.dns.type == "answer")' | wc -l)
-if [ "${c}" != 9 ]; then
+if [ "${c}" -ne 9 ]; then
     echo "error: expected 9 DNS answers, got ${c}"
     exit 1
 fi