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() {
|
function endListener() {
|
||||||
push.send([
|
push.send([
|
||||||
channel
|
channel
|
||||||
, reply.okay()
|
, reply.okay(null)
|
||||||
])
|
])
|
||||||
resolver.resolve()
|
resolver.resolve()
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,8 @@ module.exports = syrup.serial()
|
||||||
stream.end()
|
stream.end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stream.setEncoding('utf8')
|
||||||
|
|
||||||
stream.on('readable', readableListener)
|
stream.on('readable', readableListener)
|
||||||
stream.on('end', endListener)
|
stream.on('end', endListener)
|
||||||
stream.on('error', errorListener)
|
stream.on('error', errorListener)
|
||||||
|
|
|
@ -45,7 +45,7 @@ var wireutil = {
|
||||||
source
|
source
|
||||||
, seq++
|
, seq++
|
||||||
, true
|
, true
|
||||||
, data || 'success'
|
, data === null ? null : (data || 'success')
|
||||||
, body ? JSON.stringify(body) : null
|
, body ? JSON.stringify(body) : null
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue