| Index: build/android/pylib/screenshot.py
|
| diff --git a/build/android/pylib/screenshot.py b/build/android/pylib/screenshot.py
|
| index ea939b704ce6fd51fc0f70aac82a86af46cb66f2..7e122126987f89fd5050a2d9f5494f0d20ff487b 100644
|
| --- a/build/android/pylib/screenshot.py
|
| +++ b/build/android/pylib/screenshot.py
|
| @@ -4,10 +4,10 @@
|
|
|
| import logging
|
| import os
|
| -import signal
|
| import tempfile
|
|
|
| from pylib import cmd_helper
|
| +from pylib import device_signal
|
| from pylib.device import device_errors
|
|
|
| # TODO(jbudorick) Remove once telemetry gets switched over.
|
| @@ -73,9 +73,8 @@ class VideoRecorder(object):
|
| self._is_started = False
|
| if not self._recorder:
|
| return
|
| - try:
|
| - self._device.KillAll('screenrecord', signum=signal.SIGINT)
|
| - except device_errors.CommandFailedError:
|
| + if not self._device.KillAll('screenrecord', signum=device_signal.SIGINT,
|
| + quiet=True):
|
| logging.warning('Nothing to kill: screenrecord was not running')
|
| self._recorder.wait()
|
|
|
|
|