From a8b8a0948fe79520243e62bafdd1f7986eabba53 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 2 Jun 2015 11:56:27 +0100 Subject: [PATCH] cosmetic(ish): banish double bracket bashism --- test/config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/config.sh b/test/config.sh index 190fb90e..cc565fbe 100644 --- a/test/config.sh +++ b/test/config.sh @@ -123,11 +123,11 @@ assert_dns_record() { shift 3 exp_ips_regex=$(echo "$@" | sed -r 's/ /\\\|/g') - [[ -z "$DEBUG" ]] || greyly echo "Checking whether $name exists at $host:$container" + [ -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'" - [[ -z "$DEBUG" ]] || greyly echo "Checking whether the IPs '$@' exists at $host:$container" + [ -z "$DEBUG" ] || greyly echo "Checking whether the IPs '$@' exists at $host:$container" for ip in "$@" ; do assert "exec_on $host $container getent hosts $ip | tr -s ' '" "$ip $name" done @@ -139,7 +139,7 @@ assert_no_dns_record() { container=$2 name=$3 - [[ -z "$DEBUG" ]] || greyly echo "Checking if '$name' does not exist at $host:$container" + [ -z "$DEBUG" ] || greyly echo "Checking if '$name' does not exist at $host:$container" assert_raises "exec_on $host $container getent hosts $name" 2 }