mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
code changes to make ESLint happy
This commit is contained in:
parent
fa50c56bb9
commit
bf1283292e
2 changed files with 16 additions and 14 deletions
|
@ -375,7 +375,7 @@ module.exports = syrup.serial()
|
|||
}
|
||||
|
||||
function kindKill() {
|
||||
return kill('SIGTERM')
|
||||
return kill('SIGTERM'
|
||||
}
|
||||
|
||||
function forceKill() {
|
||||
|
|
|
@ -44,21 +44,23 @@ devutil.listPidsByComm = function(adb, serial, comm, bin) {
|
|||
return new Promise(function(resolve) {
|
||||
if ('ps' in commands) {
|
||||
resolve(commands)
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
adb.getProperties(serial)
|
||||
.then(function(properties) {
|
||||
version = properties['ro.build.version.release']
|
||||
if (version.match(/^8\./) != null) {
|
||||
commands['ps'] = 'ps -lef'
|
||||
} else {
|
||||
commands['ps'] = 'ps'
|
||||
var version = properties['ro.build.version.release']
|
||||
if (version.match(/^8\./) !== null) {
|
||||
commands["ps"] = 'ps -lef'
|
||||
}
|
||||
else {
|
||||
commands["ps"] = 'ps'
|
||||
}
|
||||
resolve(commands)
|
||||
})
|
||||
}
|
||||
})
|
||||
.then(function(commands) {
|
||||
return adb.shell(serial, [commands['ps']])
|
||||
return adb.shell(serial, [commands["ps"]])
|
||||
.then(function(out) {
|
||||
return new Promise(function(resolve) {
|
||||
var header = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue