Skip to content
Permalink
Browse files

Suppress warning from output

-v will print Ruby version and also set $VERBOSE to true.

-W0 sets $VERBOSE to nil
  • Loading branch information...
JuanitoFatas committed May 9, 2015
1 parent b5da487 commit 9c248da1311bb05fbf731e8b3ded7875cfdb3417
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
@@ -2,12 +2,12 @@ desc "run benchmark in current ruby"
task :run_benchmark do
Dir["code/general/*.rb"].each do |benchmark|
puts "$ ruby -v #{benchmark}"
system("ruby", "-v", benchmark)
system("ruby", "-v", "-W0", benchmark)
end

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

0 comments on commit 9c248da

Please sign in to comment.
You can’t perform that action at this time.