mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Fix adb invocations (#202)
This commit is contained in:
@@ -5,6 +5,7 @@ var logger = require('../../../util/logger')
|
||||
var wire = require('../../../wire')
|
||||
var wireutil = require('../../../wire/util')
|
||||
var lifecycle = require('../../../util/lifecycle')
|
||||
var DeviceClient = require('@devicefarmer/adbkit/dist/src/adb/DeviceClient').default
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('../support/adb'))
|
||||
@@ -13,6 +14,7 @@ module.exports = syrup.serial()
|
||||
.dependency(require('./group'))
|
||||
.define(function(options, adb, router, push, group) {
|
||||
var log = logger.createLogger('device:plugins:logcat')
|
||||
var deviceClient = new DeviceClient(adb, options.serial)
|
||||
var plugin = Object.create(null)
|
||||
var activeLogcat = null
|
||||
|
||||
@@ -22,7 +24,7 @@ module.exports = syrup.serial()
|
||||
return plugin.stop()
|
||||
.then(function() {
|
||||
log.info('Starting logcat')
|
||||
return adb.openLogcat(options.serial, {
|
||||
return deviceClient.openLogcat({
|
||||
clear: true
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user