1
0
Fork 0
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:
Simo Kinnunen 2014-03-17 11:14:24 +09:00
parent d349eabd67
commit efbd2df083

View file

@ -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)