summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-10-15 14:40:19 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-15 14:40:19 +0000
commit06f1c4500cdbd612a39e41323ae2c28e4d307f0b (patch)
treee4a3e6be5e6e6c396b63ee2d9ddffdd803fff462
parent03b9e8e9c0383a96da2bbb44ed11949a35eab6ad (diff)
downloadcmdtest-06f1c4500cdbd612a39e41323ae2c28e4d307f0b.tar.gz
yarn: Don't crash when a command failed with binary output
-rwxr-xr-xyarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn b/yarn
index 00a8a46..811e41d 100755
--- a/yarn
+++ b/yarn
@@ -324,7 +324,7 @@ class YarnRunner(cliapp.Application):
'with exit code %d:\n'
'Standard output from shell command:\n%s'
'Standard error from shell command:\n%s' %
- (scenario.name, step.what, step.text, exit,
+ (str(scenario.name), str(step.what), str(step.text), exit,
self.indent(stdout), self.indent(stderr)))
self.remember_step_timing(
'%s %s' % (step.what, step.text), stopped - started)