Author: assaf
Date: Wed Jan 16 17:53:40 2008
New Revision: 612679

URL: http://svn.apache.org/viewvc?rev=612679&view=rev
Log:
7 failing tests

Modified:
    incubator/buildr/trunk/lib/core/test.rb

Modified: incubator/buildr/trunk/lib/core/test.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/core/test.rb?rev=612679&r1=612678&r2=612679&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/core/test.rb (original)
+++ incubator/buildr/trunk/lib/core/test.rb Wed Jan 16 17:53:40 2008
@@ -488,7 +488,8 @@
       # If you want to run multiple test, separate tham with a comma. You can 
also use glob
       # (* and ?) patterns to match multiple tests, see the TestTask#include 
method.
       rule /^test:.*$/ do |task|
-        TestTask.only_run task.name.scan(/test:(.*)/)[0][0].split(',')
+        # The map works around a JRuby bug whereby the string looks fine, but 
fails in fnmatch.
+        TestTask.only_run task.name.scan(/test:(.*)/)[0][0].split(',').map { 
|t| "#{t}" }
         task('test').invoke
       end
 


Reply via email to