Commit 12282a24aef9c9f398599ffba65736d72d100d6d

Authored by Antonio Terceiro
1 parent ca349857

Fix DNS tests

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/dns_test.sh
@@ -28,8 +28,8 @@ check_reverse_dns() { @@ -28,8 +28,8 @@ check_reverse_dns() {
28 local ip="$1" 28 local ip="$1"
29 local hostname="$2" 29 local hostname="$2"
30 local results="$(host $ip)" 30 local results="$(host $ip)"
31 - local expected=".*in-addr.arpa domain name pointer $hostname"  
32 - assertTrue "Reverse DNS of $ip must be $hostname (found: $results)" "expr match \"$results\$\" \"$expected\$\"" 31 + local expected=".*in-addr.arpa domain name pointer ${hostname}."
  32 + assertTrue "Reverse DNS of $ip must be $hostname (found: $results)" "expr match '$results' '$expected\$'"
33 } 33 }
34 34
35 test_dns_web() { 35 test_dns_web() {