mirror of
https://github.com/openstf/stf
synced 2025-10-06 12:00:08 +02:00
Increase installation timeout and make sure that there's a separate timeout if there's a need to uninstall first.
This commit is contained in:
parent
c76620727e
commit
65fc9a28eb
1 changed files with 4 additions and 2 deletions
|
@ -97,6 +97,7 @@ module.exports = syrup.serial()
|
|||
sendProgress('installing_app', guesstimate)
|
||||
return promiseutil.periodicNotify(
|
||||
adb.installRemote(options.serial, apk)
|
||||
.timeout(60000)
|
||||
.catch(function(err) {
|
||||
switch (err.code) {
|
||||
case 'INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES':
|
||||
|
@ -105,11 +106,13 @@ module.exports = syrup.serial()
|
|||
, pkg
|
||||
)
|
||||
return adb.uninstall(options.serial, pkg)
|
||||
.timeout(15000)
|
||||
.then(function() {
|
||||
return adb.installRemote(options.serial, apk)
|
||||
.timeout(60000)
|
||||
})
|
||||
default:
|
||||
throw err
|
||||
return Promise.reject(err)
|
||||
}
|
||||
})
|
||||
, 250
|
||||
|
@ -121,7 +124,6 @@ module.exports = syrup.serial()
|
|||
)
|
||||
sendProgress('installing_app', guesstimate)
|
||||
})
|
||||
.timeout(35000)
|
||||
})
|
||||
.then(function() {
|
||||
if (message.launch) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue