1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Fix shell output.

This commit is contained in:
Simo Kinnunen 2014-07-25 16:54:26 +09:00
parent a332b6a5bb
commit 7286fac282
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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
)) ))
} }