From 36fc065418f5b9c5eeee4542cfa8631a856280c8 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 30 Apr 2014 11:39:52 +0200 Subject: [PATCH] simple_query.sh: Store output in a variable before analyzing it. This ensures that we actually get and check the right exit code. --- t/integration/simple_query.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/integration/simple_query.sh b/t/integration/simple_query.sh index 3473fa1..7c62775 100755 --- a/t/integration/simple_query.sh +++ b/t/integration/simple_query.sh @@ -49,7 +49,8 @@ sysdbd_pid=$! wait_for_sysdbd sleep 3 -"$SYSDB" -H "$SOCKET_FILE" -c LIST \ +output="$( $SYSDB -H "$SOCKET_FILE" -c LIST )" +echo "$output" \ | grep -F '"host1.example.com"' \ | grep -F "host2.example.com" \ | grep -F "localhost" \ -- 2.30.2