mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Merge pull request #481 from openstf/add-automation-label
Use automation label in device list for devices accessed using API
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = syrup.serial()
|
||||
return currentGroup
|
||||
})
|
||||
|
||||
plugin.join = function(newGroup, timeout, identifier) {
|
||||
plugin.join = function(newGroup, timeout, usage) {
|
||||
return plugin.get()
|
||||
.then(function() {
|
||||
if (currentGroup.group !== newGroup.group) {
|
||||
@@ -57,10 +57,11 @@ module.exports = syrup.serial()
|
||||
, wireutil.envelope(new wire.JoinGroupMessage(
|
||||
options.serial
|
||||
, currentGroup
|
||||
, usage
|
||||
))
|
||||
])
|
||||
|
||||
plugin.emit('join', currentGroup, identifier)
|
||||
plugin.emit('join', currentGroup)
|
||||
|
||||
return currentGroup
|
||||
})
|
||||
@@ -113,7 +114,7 @@ module.exports = syrup.serial()
|
||||
var reply = wireutil.reply(options.serial)
|
||||
grouputil.match(ident, message.requirements)
|
||||
.then(function() {
|
||||
return plugin.join(message.owner, message.timeout)
|
||||
return plugin.join(message.owner, message.timeout, message.usage)
|
||||
})
|
||||
.then(function() {
|
||||
push.send([
|
||||
|
||||
Reference in New Issue
Block a user