Skip to content

Commit

Permalink
Fixes to script/tc.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jun 19, 2023
1 parent 26b8fb4 commit ccfaab7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions script/tc
Expand Up @@ -35,10 +35,8 @@ def run_tc(tc, **options)

if options[:verbose]
puts "\nTestCase: #{tc.inspect}"
puts "\nInput:\n" + tc.input.read
puts "\nExpected:\n" + tc.expected.read
tc.input.rewind
tc.expected.rewind
puts "\nInput:\n" + tc.input
puts "\nExpected:\n" + tc.expected
end

begin
Expand Down Expand Up @@ -158,7 +156,7 @@ result_count = {}
Fixtures::SuiteTest::Manifest.open(manifest) do |m|
m.entries.each do |tc|
next unless ARGV.empty? || ARGV.any? {|n| tc.name.match(/#{n}/)}
run_tc(tc, options.merge(result_count: result_count))
run_tc(tc, **options.merge(result_count: result_count))
end
end

Expand Down

0 comments on commit ccfaab7

Please sign in to comment.