From efbd2df0839f16f81bd0465e4f7b32a7bcc40f9c Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Mon, 17 Mar 2014 11:14:24 +0900 Subject: [PATCH] Be more careful about preventing "text is busy" errors. --- lib/roles/device/resources/remote.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/roles/device/resources/remote.js b/lib/roles/device/resources/remote.js index 7117684e..d85b6d76 100644 --- a/lib/roles/device/resources/remote.js +++ b/lib/roles/device/resources/remote.js @@ -44,7 +44,8 @@ module.exports = syrup() function ensureNotBusy(res) { return adb.shell(options.serial, [res.dest, '--help']) .then(function(out) { - return streamutil.findLine(out, (/text file busy/i)) + // Can be "Text is busy", "text busy" + return streamutil.findLine(out, (/busy/i)) .then(function(line) { log.info('Binary is busy, will retry') return Promise.delay(100)