mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 19:47:53 +00:00
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:
parent
83b3a681f4
commit
3b72e9ffab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user