mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
More useful logs.
This commit is contained in:
parent
88de7d1578
commit
f8cceffe91
1 changed files with 12 additions and 7 deletions
|
@ -159,10 +159,15 @@ module.exports = function(options) {
|
|||
return devutil.waitForPort(adb, options.serial, port)
|
||||
})
|
||||
.then(function(conn) {
|
||||
conn.end()
|
||||
var ours = options.ports.pop()
|
||||
, everyones = options.ports.pop()
|
||||
, url = util.format('http://127.0.0.1:%d', ours)
|
||||
|
||||
// Don't need the connection
|
||||
conn.end()
|
||||
|
||||
log.info('Opening device HTTP API forwarder on "%s"', url)
|
||||
|
||||
return adb.forwardAsync(
|
||||
options.serial
|
||||
, util.format('tcp:%d', ours)
|
||||
|
@ -179,6 +184,12 @@ module.exports = function(options) {
|
|||
identity.display = args[1]
|
||||
})
|
||||
.then(function() {
|
||||
log.info(
|
||||
'Opening HTTP API proxy on "http://%s:%s"'
|
||||
, options.publicIp
|
||||
, everyones
|
||||
)
|
||||
|
||||
var resolver = Promise.defer()
|
||||
|
||||
function resolve() {
|
||||
|
@ -208,12 +219,6 @@ module.exports = function(options) {
|
|||
})
|
||||
})
|
||||
.then(function() {
|
||||
log.info(
|
||||
'HTTP API proxy running on "http://%s:%s"'
|
||||
, options.publicIp
|
||||
, everyones
|
||||
)
|
||||
|
||||
identity.display.url = util.format(
|
||||
'http://%s:%s/api/v1/displays/0/screenshot.jpg'
|
||||
, options.publicIp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue