mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
Separate device functionality into plugins.
This commit is contained in:
@@ -6,7 +6,6 @@ var semver = require('semver')
|
||||
var minimatch = require('minimatch')
|
||||
|
||||
var wire = require('../wire')
|
||||
var pathutil = require('./pathutil')
|
||||
|
||||
var devutil = module.exports = Object.create(null)
|
||||
|
||||
@@ -46,24 +45,6 @@ devutil.matchesRequirements = function(capabilities, requirements) {
|
||||
})
|
||||
}
|
||||
|
||||
devutil.vendorFiles = function(identity) {
|
||||
return {
|
||||
bin: {
|
||||
src: pathutil.vendor(util.format(
|
||||
'remote/libs/%s/remote', identity.abi))
|
||||
, dest: '/data/local/tmp/remote'
|
||||
, comm: 'remote'
|
||||
, mode: 0755
|
||||
}
|
||||
, lib: {
|
||||
src: pathutil.vendor(util.format(
|
||||
'remote/external/android-%d/remote_external.so', identity.sdk))
|
||||
, dest: '/data/local/tmp/remote_external.so'
|
||||
, mode: 0755
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
devutil.ensureUnusedPort = function(adb, serial, port) {
|
||||
return adb.openTcp(serial, port)
|
||||
.then(function(conn) {
|
||||
@@ -99,6 +80,7 @@ devutil.waitForPortToFree = function(adb, serial, port) {
|
||||
}
|
||||
|
||||
function errorListener(err) {
|
||||
console.log('ERR', err)
|
||||
resolver.reject(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user