[Android] Clear adb logcat during adb_logcat_monitor startup.

BUG=249039
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/17438004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207175 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
frankf@chromium.org 2013-06-19 04:06:26 +00:00
Родитель fff8aa73bf
Коммит b5f7fef472
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -126,6 +126,7 @@ def main(base_dir, adb_cmd='adb'):
while True: while True:
for device_id in GetAttachedDevices(adb_cmd): for device_id in GetAttachedDevices(adb_cmd):
if not device_id in devices: if not device_id in devices:
subprocess.call([adb_cmd, '-s', device_id, 'logcat', '-c'])
devices[device_id] = (None, 0) devices[device_id] = (None, 0)
for device in devices: for device in devices: