##// END OF EJS Templates
scm: git: skip non UTF-8 path encoding test of unit model test in JRuby (#5251)....
Toshi MARUYAMA -
r5885:91abe154824d
parent child
Show More
@@ -33,6 +33,14 class RepositoryGitTest < ActiveSupport::TestCase
33 # WINDOWS_PASS = Redmine::Platform.mswin?
33 # WINDOWS_PASS = Redmine::Platform.mswin?
34 WINDOWS_PASS = false
34 WINDOWS_PASS = false
35
35
36 ## Git, Mercurial and CVS path encodings are binary.
37 ## Subversion supports URL encoding for path.
38 ## Redmine Mercurial adapter and extension use URL encoding.
39 ## Git accepts only binary path in command line parameter.
40 ## So, there is no way to use binary command line parameter in JRuby.
41 JRUBY_SKIP = (RUBY_PLATFORM == 'java')
42 JRUBY_SKIP_STR = "TODO: This test fails in JRuby"
43
36 if File.directory?(REPOSITORY_PATH)
44 if File.directory?(REPOSITORY_PATH)
37 def setup
45 def setup
38 klass = Repository::Git
46 klass = Repository::Git
@@ -308,6 +316,9 class RepositoryGitTest < ActiveSupport::TestCase
308 '61b685fbe55ab05b5ac68402d5720c1a6ac973d1',
316 '61b685fbe55ab05b5ac68402d5720c1a6ac973d1',
309 ], changesets.collect(&:revision)
317 ], changesets.collect(&:revision)
310
318
319 if JRUBY_SKIP
320 puts JRUBY_SKIP_STR
321 else
311 # latin-1 encoding path
322 # latin-1 encoding path
312 changesets = @repository.latest_changesets(
323 changesets = @repository.latest_changesets(
313 "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89')
324 "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89')
@@ -322,10 +333,13 class RepositoryGitTest < ActiveSupport::TestCase
322 '64f1f3e89ad1cb57976ff0ad99a107012ba3481d',
333 '64f1f3e89ad1cb57976ff0ad99a107012ba3481d',
323 ], changesets.collect(&:revision)
334 ], changesets.collect(&:revision)
324 end
335 end
336 end
325
337
326 def test_latest_changesets_latin_1_dir
338 def test_latest_changesets_latin_1_dir
327 if WINDOWS_PASS
339 if WINDOWS_PASS
328 #
340 #
341 elsif JRUBY_SKIP
342 puts JRUBY_SKIP_STR
329 else
343 else
330 @repository.fetch_changesets
344 @repository.fetch_changesets
331 @repository.reload
345 @repository.reload
General Comments 0
You need to be logged in to leave comments. Login now