mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
Rename vital checkers.
This commit is contained in:
parent
a25df0b293
commit
e7a887ae45
1 changed files with 3 additions and 3 deletions
|
@ -294,14 +294,14 @@ module.exports = function(options) {
|
||||||
log.info('Launching TouchService')
|
log.info('Launching TouchService')
|
||||||
return devutil.ensureUnusedPort(adb, options.serial, 2820)
|
return devutil.ensureUnusedPort(adb, options.serial, 2820)
|
||||||
.then(function(port) {
|
.then(function(port) {
|
||||||
var log = logger.createLogger('device:remote:input')
|
var log = logger.createLogger('device:remote:touch')
|
||||||
return adb.shellAsync(options.serial, [
|
return adb.shellAsync(options.serial, [
|
||||||
vendor.bin.dest
|
vendor.bin.dest
|
||||||
, '--lib', vendor.lib.dest
|
, '--lib', vendor.lib.dest
|
||||||
, '--listen-input', port
|
, '--listen-input', port
|
||||||
])
|
])
|
||||||
.then(function(out) {
|
.then(function(out) {
|
||||||
vitals.register('device:remote:input:shell', out)
|
vitals.register('device:remote:touch:shell', out)
|
||||||
out.pipe(split())
|
out.pipe(split())
|
||||||
.on('data', function(chunk) {
|
.on('data', function(chunk) {
|
||||||
log.info(chunk)
|
log.info(chunk)
|
||||||
|
@ -317,7 +317,7 @@ module.exports = function(options) {
|
||||||
})
|
})
|
||||||
.then(function(monkey) {
|
.then(function(monkey) {
|
||||||
services.touch = vitals.register(
|
services.touch = vitals.register(
|
||||||
'device:remote:input:monkey'
|
'device:remote:touch:monkey'
|
||||||
, Promise.promisifyAll(monkey)
|
, Promise.promisifyAll(monkey)
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue