From 42af3b662e70584b49ada6949f278bbaa5fd435b Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 30 Apr 2014 23:50:09 +0200 Subject: [PATCH] integration/simple_query.sh: Test a failing command. --- t/integration/simple_query.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/integration/simple_query.sh b/t/integration/simple_query.sh index 9a317d9..d413b99 100755 --- a/t/integration/simple_query.sh +++ b/t/integration/simple_query.sh @@ -70,6 +70,10 @@ echo "$output" | grep -F 'localhost' && exit 1 echo "$output" | grep -F 'other.host.name' && exit 1 echo "$output" | grep -F 'some.host.name' && exit 1 +output="$( $SYSDB -H "$SOCKET_FILE" -c "FETCH 'does.not.exist'" )" \ + && exit 1 +echo "$output" | grep -F 'not found' + output="$( $SYSDB -H "$SOCKET_FILE" \ -c "LOOKUP hosts WHERE attribute.architecture = 'x42'" )" echo "$output" \ -- 2.30.2