mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 22:35:25 +02:00
Initial version of transactions. Shell command implemented as an example. Still needs channel cleanup on app side, handling a device dying in the middle of a transaction, and getting device list back to normal.
This commit is contained in:
@@ -81,13 +81,10 @@ module.exports = function(options) {
|
||||
dbapi.saveDeviceIdentity(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.ShellCommandDataMessage, function(channel, message, data) {
|
||||
.on(wire.TransactionProgressMessage, function(channel, message, data) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.ShellCommandDoneMessage, function(channel, message, data) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.ShellCommandFailMessage, function(channel, message, data) {
|
||||
.on(wire.TransactionDoneMessage, function(channel, message, data) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.handler())
|
||||
|
||||
Reference in New Issue
Block a user