Skip to content

Commit

Permalink
Print stdout for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Nov 19, 2023
1 parent 4d94d10 commit 1b660c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/lrama/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def test_parser(parser_name, input, expected, lrama_command_args: [], debug: fal
status = wait_thr.value
end

STDERR.puts err if debug && !err.empty?
if debug
STDERR.puts out
STDERR.puts err
end
expect(status.success?).to be(true), status.to_s
expect(out).to eq(expected)
end
Expand Down

0 comments on commit 1b660c1

Please sign in to comment.