Code

integration/simple_query.sh: Test a failing command.
authorSebastian Harl <sh@tokkee.org>
Wed, 30 Apr 2014 21:50:09 +0000 (23:50 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 30 Apr 2014 21:50:09 +0000 (23:50 +0200)
t/integration/simple_query.sh

index 9a317d97fa24b4dec000c2049244a6ddf5258146..d413b997ea4e6d422c2747e422904bda17eed398 100755 (executable)
@@ -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" \