Synchronous adb shell and pull for loopback start script

Before the removal and copy of script of video file on the android
device was done asynchronously, which was a bug.

BUG=webrtc:6545
NOTRY=True

Review-Url: https://codereview.webrtc.org/2470663004
Cr-Commit-Position: refs/heads/master@{#14898}
This commit is contained in:
mandermo 2016-11-02 09:19:45 -07:00 committed by Commit bot
parent d192dce1c5
commit 3e79dbdc37

View File

@ -74,7 +74,7 @@ def main():
# Delete output video file.
if videoout:
subprocess.Popen(['adb', '-s', devname, 'shell', 'rm',
subprocess.check_call(['adb', '-s', devname, 'shell', 'rm',
videoout])
device = MonkeyRunner.waitForConnection(2, devname)
@ -116,7 +116,7 @@ def main():
if videooutsave:
time.sleep(2)
subprocess.Popen(['adb', '-s', devname, 'pull',
subprocess.check_call(['adb', '-s', devname, 'pull',
videoout, videooutsave])
if __name__ == '__main__':