From: Sebastian Harl Date: Wed, 30 Apr 2014 09:39:52 +0000 (+0200) Subject: simple_query.sh: Store output in a variable before analyzing it. X-Git-Tag: sysdb-0.1.0~62 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=36fc065418f5b9c5eeee4542cfa8631a856280c8 simple_query.sh: Store output in a variable before analyzing it. This ensures that we actually get and check the right exit code. --- 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" \