mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Be more careful about preventing "text is busy" errors.
This commit is contained in:
parent
d349eabd67
commit
efbd2df083
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue