servo: pause capture during issue_cmd_get_results

Capture reads data from the console. If it happens to read data required
by the issue_cmd_get_results regex, then the command will timeout. Add
capture_pause and resume functions to pause console capture during
issue_cmd_get_results. Any data not consumed by issue_cmd_get_results
will be available for capture to read once it is resumed.

BUG=b:69802822
BRANCH=none
TEST=enable cr50 and ec uart capture. Read cr50_version and ec_board 200
times. Make sure there are no failures

Change-Id: I1392f361d0ee44bea963aa874ca03d11f042bf5c
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/794871
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
2 files changed