mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Remove unused method devutil.startProp(). It was probably added by mistake.
This commit is contained in:
parent
e083855d61
commit
e0426d01be
1 changed files with 0 additions and 26 deletions
|
@ -113,32 +113,6 @@ devutil.killProcsByComm = function(adb, serial, comm, bin, mode) {
|
|||
})
|
||||
}
|
||||
|
||||
devutil.startProp = function(adb, serial, cmd) {
|
||||
return adb.openTcpAsync(options.serial, port)
|
||||
.then(function(conn) {
|
||||
conn.end()
|
||||
})
|
||||
.catch(function(err) {
|
||||
if (err.message === 'closed') {
|
||||
var cmd = [
|
||||
vendor.bin.dest
|
||||
, '--lib', vendor.lib.dest
|
||||
, '--listen-http', port
|
||||
]
|
||||
return adb.shellAsync(options.serial, cmd)
|
||||
.then(function(out) {
|
||||
|
||||
out.on('end', function() {
|
||||
log.fatal('')
|
||||
})
|
||||
})
|
||||
}
|
||||
else {
|
||||
throw err
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
devutil.platform = function(platform) {
|
||||
switch (platform) {
|
||||
case 'android':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue