mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Prevent certificate issues when installing STFService by uninstalling it first.
This commit is contained in:
parent
ce9733f5da
commit
40b493649b
1 changed files with 9 additions and 4 deletions
|
@ -69,10 +69,15 @@ module.exports = syrup.serial()
|
|||
})
|
||||
.catch(function() {
|
||||
log.info('Installing STFService')
|
||||
return promiseutil.periodicNotify(
|
||||
adb.install(options.serial, resource.apk)
|
||||
, 10000
|
||||
)
|
||||
// Uninstall first to make sure we don't have any certificate
|
||||
// issues.
|
||||
return adb.uninstall(options.serial, resource.pkg)
|
||||
.then(function() {
|
||||
return promiseutil.periodicNotify(
|
||||
adb.install(options.serial, resource.apk)
|
||||
, 10000
|
||||
)
|
||||
})
|
||||
.progressed(function() {
|
||||
log.warn(
|
||||
'STFService installation is taking a long time; '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue