[Groonga-commit] groonga/groonga-test [master] Use Pathname.glob

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 9日 (金) 14:54:00 JST


Kouhei Sutou	2012-03-09 14:54:00 +0900 (Fri, 09 Mar 2012)

  New Revision: e30820ee2c3e96ece303610cd9a52b24c40a4487

  Log:
    Use Pathname.glob

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+2 -2)
===================================================================
--- lib/groonga/tester.rb    2012-03-06 19:13:02 +0900 (dc8fb39)
+++ lib/groonga/tester.rb    2012-03-09 14:54:00 +0900 (80e94e6)
@@ -106,8 +106,8 @@ module Groonga
         target_path = Pathname(target)
         next unless target_path.exist?
         if target_path.directory?
-          Dir.glob(target_path + "**" + "*.test") do |target_file|
-            succeeded = false unless run_test(Pathname(target_file), reporter)
+          Pathname.glob(target_path + "**" + "*.test") do |target_file|
+            succeeded = false unless run_test(target_file, reporter)
           end
         else
           succeeded = false unless run_test(target_path, reporter)




Groonga-commit メーリングリストの案内
Back to archive index