Haruka Yoshihara
null+****@clear*****
Thu Dec 13 17:28:15 JST 2012
Haruka Yoshihara 2012-12-13 17:28:15 +0900 (Thu, 13 Dec 2012) New Revision: 3c68ab71dab68fee11afd11fb67d468c8ce88ed8 https://github.com/groonga/groonga-query-log/commit/3c68ab71dab68fee11afd11fb67d468c8ce88ed8 Log: test: treat ARGV after "test" as options for Test::Unit::AutoRunner Modified files: Rakefile Modified: Rakefile (+6 -1) =================================================================== --- Rakefile 2012-12-13 17:26:55 +0900 (b1007cd) +++ Rakefile 2012-12-13 17:28:15 +0900 (2bf9e30) @@ -40,7 +40,12 @@ end desc "Run tests" task :test do - run_test_options = ARGV - ["test"] + task_index = ARGV.index("test") + if task_index + run_test_options = ARGV[(task_index + 1)..-1] + else + run_test_options = [] + end tests_exit_status = ruby("test/run-test.rb", *run_test_options) exit(tests_exit_status) end -------------- next part -------------- HTML����������������������������... Download