Fix error message in uhwm_wait_output UAT helper

This commit is contained in:
Thibault Jouan 2015-04-13 23:48:35 +00:00
parent 8a97f3c8b8
commit 5e80648525

View File

@ -31,9 +31,12 @@ module Uh
end end
end end
rescue Timeout::Error rescue Timeout::Error
output = (@process.stdout + @process.stderr).lines
.map { |e| " #{e}" }
.join
fail [ fail [
"expected `#{message}' not seen after #{timeout} seconds in:", "expected `#{message}' not seen after #{timeout} seconds in:",
" ```\n #{@process.stdout + @process.stderr} ```" " ```\n#{output} ```"
].join "\n" ].join "\n"
end end