mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 03:53:28 +02:00
Be more careful about preventing "text is busy" errors.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user