mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-24 01:35:14 +02:00
Provider better provider debug output and make fix killProcsByComm hanging on Xperia Z1.
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = function(options) {
|
||||
function totals() {
|
||||
if (lists.waiting.length) {
|
||||
log.info(
|
||||
'Providing %d of %d device(s), and still waiting for "%s"'
|
||||
'Providing %d of %d device(s); waiting for "%s"'
|
||||
, lists.ready.length
|
||||
, lists.all.length
|
||||
, lists.waiting.join('", "')
|
||||
@@ -38,10 +38,17 @@ module.exports = function(options) {
|
||||
|
||||
delayedTotals()
|
||||
}
|
||||
else if (lists.ready.length < lists.all.length) {
|
||||
log.info(
|
||||
'Providing all %d of %d device(s); ignoring "%s"'
|
||||
, lists.ready.length
|
||||
, lists.all.length
|
||||
, _.difference(lists.all, lists.ready).join('", "')
|
||||
)
|
||||
}
|
||||
else {
|
||||
log.info(
|
||||
'Providing all %d of %d device(s)'
|
||||
, lists.ready.length
|
||||
'Providing all %d device(s)'
|
||||
, lists.all.length
|
||||
)
|
||||
}
|
||||
@@ -298,6 +305,8 @@ module.exports = function(options) {
|
||||
proc.on('error', errorListener)
|
||||
proc.on('message', messageListener)
|
||||
|
||||
lists.waiting.push(device.id)
|
||||
|
||||
return resolver.promise
|
||||
.finally(function() {
|
||||
log.info('Cleaning up device worker "%s"', device.id)
|
||||
|
||||
Reference in New Issue
Block a user