Merge pull request #619 from mrunalp/tty_logging_check

test: Tighten the grep for logging with tty
This commit is contained in:
Mrunal Patel 2017-06-22 10:02:54 -07:00 committed by GitHub
commit 59820df8e1

View file

@ -241,7 +241,7 @@ function teardown() {
logpath="$DEFAULT_LOG_PATH/$pod_id/$ctr_id.log" logpath="$DEFAULT_LOG_PATH/$pod_id/$ctr_id.log"
[ -f "$logpath" ] [ -f "$logpath" ]
echo "$logpath :: $(cat "$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" run crioctl pod stop --id "$pod_id"
echo "$output" echo "$output"