mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Fix shell output.
This commit is contained in:
parent
a332b6a5bb
commit
7286fac282
2 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,7 @@ module.exports = syrup.serial()
|
|||
function endListener() {
|
||||
push.send([
|
||||
channel
|
||||
, reply.okay()
|
||||
, reply.okay(null)
|
||||
])
|
||||
resolver.resolve()
|
||||
}
|
||||
|
@ -55,6 +55,8 @@ module.exports = syrup.serial()
|
|||
stream.end()
|
||||
}
|
||||
|
||||
stream.setEncoding('utf8')
|
||||
|
||||
stream.on('readable', readableListener)
|
||||
stream.on('end', endListener)
|
||||
stream.on('error', errorListener)
|
||||
|
|
|
@ -45,7 +45,7 @@ var wireutil = {
|
|||
source
|
||||
, seq++
|
||||
, true
|
||||
, data || 'success'
|
||||
, data === null ? null : (data || 'success')
|
||||
, body ? JSON.stringify(body) : null
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue