From: Sebastian Harl Date: Wed, 30 Apr 2014 21:50:09 +0000 (+0200) Subject: integration/simple_query.sh: Test a failing command. X-Git-Tag: sysdb-0.1.0~54 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=42af3b662e70584b49ada6949f278bbaa5fd435b integration/simple_query.sh: Test a failing command. --- 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" \