1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Rename vital checkers.

This commit is contained in:
Simo Kinnunen 2014-03-04 19:19:11 +09:00
parent a25df0b293
commit e7a887ae45

View file

@ -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)
) )
}) })