mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Figure out how to kill monkey reliably.
This commit is contained in:
parent
403c29c60a
commit
3c55f91ee9
2 changed files with 17 additions and 5 deletions
|
@ -74,7 +74,20 @@ module.exports = function(options) {
|
|||
})
|
||||
.then(function() {
|
||||
log.info('Checking if any processes from a previous run are still up')
|
||||
return devutil.killProcsByBin(adb, options.serial, vendor.bin.dest)
|
||||
return Promise.all([
|
||||
devutil.killProcsByComm(
|
||||
adb
|
||||
, options.serial
|
||||
, vendor.bin.comm
|
||||
, vendor.bin.dest
|
||||
)
|
||||
, devutil.killProcsByComm(
|
||||
adb
|
||||
, options.serial
|
||||
, 'commands.monkey'
|
||||
, 'com.android.commands.monkey'
|
||||
)
|
||||
])
|
||||
})
|
||||
.then(function() {
|
||||
var port = 2870
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue