Improve error reporting in cucumber helpers
Indent stdout and stderr in the error generated by uhwm_wait_output helper.
This commit is contained in:
parent
c9e6d1807b
commit
0ce73c2e2f
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user