From 4f72199535bc7f533c0e034c666083b407d7e85a Mon Sep 17 00:00:00 2001 From: vroyer Date: Tue, 10 Dec 2019 01:26:23 +0100 Subject: [PATCH] fixup restrictive test --- test/tests/elassandra-config/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/elassandra-config/run.sh b/test/tests/elassandra-config/run.sh index bc0094a..a88136b 100755 --- a/test/tests/elassandra-config/run.sh +++ b/test/tests/elassandra-config/run.sh @@ -53,7 +53,7 @@ test_config_yq() { file=$1 key=$2 expected=$3 - actual="$(docker exec $cid cat $file | grep -v '#' | grep -e "^\s*$key:")" + actual="$(docker exec $cid cat $file | grep -v '#' | grep -e "$key:")" re=${4:-"$key: $expected"$} if [[ ! "$actual" =~ $re ]]; then