Improve error reporting in cucumber helpers

Indent stdout and stderr in the error generated by uhwm_wait_output
helper.
This commit is contained in:
Thibault Jouan 2015-04-10 16:57:09 +00:00
parent c9e6d1807b
commit 0ce73c2e2f

View File

@ -11,7 +11,7 @@ def uhwm_wait_output message, timeout: 1
rescue Timeout::Error rescue Timeout::Error
fail [ fail [
"expected `#{message}' not seen after #{timeout} seconds in:", "expected `#{message}' not seen after #{timeout} seconds in:",
"```\n#{@process.stdout + @process.stderr}```" " ```\n #{@process.stdout + @process.stderr} ```"
].join "\n" ].join "\n"
end end