From db337699f269f49a26d2d39656552150ead2d156 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Wed, 21 Jun 2017 10:10:16 -0700 Subject: [PATCH] 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 --- test/ctr.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ctr.bats b/test/ctr.bats index a2504181..baad7844 100644 --- a/test/ctr.bats +++ b/test/ctr.bats @@ -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"