index 751b22ba9c00f58325bc2956bd5180278fb2eb13..c96f7abea9c94cc8432a3ed27ff39268b3c60cd6 100755 (executable)
output="$( run_sysdb -H "$SOCKET_FILE" \
-c "LOOKUP hosts MATCHING ANY attribute != 'architecture'" )"
+echo "$output" \
+ | grep -F '"localhost"' \
+ | grep -F '"other.host.name"' \
+ | grep -F '"host1.example.com"' \
+ | grep -F '"host2.example.com"'
+echo "$output" | grep -F 'some.host.name' && exit 1
+
+output="$( run_sysdb -H "$SOCKET_FILE" \
+ -c "LOOKUP hosts MATCHING ALL attribute != 'architecture'" )"
echo "$output" \
| grep -F '"some.host.name"' \
| grep -F '"localhost"'