Skip to content

Commit 9c248da

Browse files
committed
Suppress warning from output
-v will print Ruby version and also set $VERBOSE to true. -W0 sets $VERBOSE to nil
1 parent b5da487 commit 9c248da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ desc "run benchmark in current ruby"
22
task :run_benchmark do
33
Dir["code/general/*.rb"].each do |benchmark|
44
puts "$ ruby -v #{benchmark}"
5-
system("ruby", "-v", benchmark)
5+
system("ruby", "-v", "-W0", benchmark)
66
end
77

88
Dir["code/*/*.rb"].reject { |path| path =~ /^code\/general/ }.each do |benchmark|
99
puts "$ ruby -v #{benchmark}"
10-
system("ruby", "-v", benchmark)
10+
system("ruby", "-v", "-W0", benchmark)
1111
end
1212
end
1313

0 commit comments

Comments
 (0)