mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 12:53:31 +02:00
Rename vital checkers.
This commit is contained in:
@@ -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)
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user