Commit 055ed2e8 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'pl-qa-shell-flush-buffer' into 'master'

QA: Make shellout more responsive

See merge request gitlab-org/gitlab-ce!29798
parents a6701647 3df46a10
......@@ -19,7 +19,7 @@ module QA
Open3.popen2e(*command) do |stdin, out, wait|
stdin.puts(stdin_data) if stdin_data
stdin.close if stdin_data
out.each { |line| puts line }
out.each_char { |char| print char }
if wait.value.exited? && wait.value.exitstatus.nonzero?
raise CommandError, "Command `#{command}` failed!"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment