Commit 12282a24aef9c9f398599ffba65736d72d100d6d
1 parent
ca349857
Exists in
master
and in
90 other branches
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 | 28 | local ip="$1" |
29 | 29 | local hostname="$2" |
30 | 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 | 35 | test_dns_web() { | ... | ... |