tests/k8s: Fix assert_logs_contain

The pipe needs adding to the grep, otherwise the grep
gets consumed as an argument to `print_node_journal` and
run in the debug pod.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2024-07-10 19:17:34 +01:00
parent 83b3a681f4
commit 3b72e9ffab

View File

@ -78,7 +78,7 @@ assert_logs_contain() {
# Note: with image-rs we get more than the default 1000 lines of logs
print_node_journal "$node" "$log_id" --since "$datetime" -n 100000 \
grep "$message"
| grep "$message"
}
# Create a pod then assert it fails to run. Use in tests that you expect the