summaryrefslogtreecommitdiff
path: root/yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-01-25 15:48:03 +0200
committerLars Wirzenius <liw@liw.fi>2016-01-25 15:49:18 +0200
commitd8b0dda618848eb6517e94fd1747317cda008f78 (patch)
tree9bf0faaaa0fb58b8e247c2e0766d94405a4f6793 /yarn
parent47ec46db933a867f0c364c945c2412d3193c004f (diff)
downloadcmdtest-d8b0dda618848eb6517e94fd1747317cda008f78.tar.gz
Allow non-ASCII in scenario, step names
Thanks to Heikki Haapala for reporting the problem.
Diffstat (limited to 'yarn')
-rwxr-xr-xyarn4
1 files changed, 2 insertions, 2 deletions
diff --git a/yarn b/yarn
index 0782a8f..f36bbd4 100755
--- a/yarn
+++ b/yarn
@@ -322,7 +322,7 @@ class YarnRunner(cliapp.Application):
started = time.time()
self.info(0, 'Running scenario %s' % scenario.name)
- self.ts['scenario_name'] = scenario.name
+ self.ts['scenario_name'] = scenario.name.encode('utf-8')
self.ts.flush()
self.scenarios_run += 1
@@ -440,7 +440,7 @@ class YarnRunner(cliapp.Application):
self.info(1, 'Running step "%s %s"' % (step.what, step.text))
self.ts['current_step'] = step
- self.ts['step_name'] = '%s %s' % (step.what, step.text)
+ self.ts['step_name'] = '%s %s' % (step.what, step.text.encode('utf8'))
self.ts.flush()
self.steps_run += 1