test: Tighten the grep for logging with tty

This tests that our ONLCR takes effect as we match \r\n
in the logs

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2017-06-21 10:10:16 -07:00
parent 774c47d00c
commit db337699f2

View file

@ -241,7 +241,7 @@ function teardown() {
logpath="$DEFAULT_LOG_PATH/$pod_id/$ctr_id.log"
[ -f "$logpath" ]
echo "$logpath :: $(cat "$logpath")"
grep -E "^[^\n]+ stdout here is some output" "$logpath"
grep --binary -P "^[^\n]+ stdout here is some output\x0d$" "$logpath"
run crioctl pod stop --id "$pod_id"
echo "$output"