diff --git a/test/config.sh b/test/config.sh index 50cf0a3f..5efbf5e7 100644 --- a/test/config.sh +++ b/test/config.sh @@ -124,8 +124,7 @@ assert_dns_record() { exp_ips_regex=$(echo "$@" | sed -r 's/ /\\\|/g') [ -z "$DEBUG" ] || greyly echo "Checking whether $name exists at $host:$container" - got_ip=$(exec_on $host $container getent hosts $name) - assert_raises "echo '$got_ip' | grep -q '$exp_ips_regex'" + assert_raises "exec_on $host $container getent hosts $name | grep -q '$exp_ips_regex'" [ -z "$DEBUG" ] || greyly echo "Checking whether the IPs '$@' exists at $host:$container" for ip in "$@" ; do