mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Temporarily skip Latin1 output tests for RepositoryBazaarTest on Ubuntu 24.04 (#42024).
This commit addresses test failures in the "Latin1 output tests" for RepositoryBazaarTest observed when running tests on Ubuntu 24.04. The affected tests are skipped on this specific OS version. This is a temporary workaround until the root cause is resolved. Contributed by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23421 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f55afcc4ad
commit
a56f43f045
@ -165,7 +165,22 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH_NON_ASCII) && RUN_LATIN1_OUTPUT_TEST
|
||||
# https://www.redmine.org/issues/42024
|
||||
def skip_bzr_failure_on_ubuntu24
|
||||
return unless File.exist?('/etc/os-release')
|
||||
|
||||
os_release = File.read('/etc/os-release')
|
||||
name = os_release[/^NAME="(.+?)"$/, 1]
|
||||
version = os_release[/^VERSION_ID="(.+?)"$/, 1]
|
||||
|
||||
if name == 'Ubuntu' && version == '24.04'
|
||||
skip 'bzr command fails on Ubuntu 24.04, causing this test to fail'
|
||||
end
|
||||
end
|
||||
|
||||
def test_cat_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
buf =
|
||||
latin1_repo.cat(
|
||||
@ -186,6 +201,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_annotate_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
ann1 =
|
||||
latin1_repo.annotate(
|
||||
@ -206,6 +223,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_diff_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
diff1 =
|
||||
latin1_repo.diff(
|
||||
@ -217,6 +236,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_entries_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
entries = latin1_repo.entries("test-#{CHAR_1_UTF8_HEX}-dir", 2)
|
||||
assert_kind_of Redmine::Scm::Adapters::Entries, entries
|
||||
@ -227,6 +248,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_entry_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
["test-#{CHAR_1_UTF8_HEX}-dir",
|
||||
"/test-#{CHAR_1_UTF8_HEX}-dir",
|
||||
@ -245,6 +268,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_changeset_latin1_path
|
||||
skip_bzr_failure_on_ubuntu24
|
||||
|
||||
latin1_repo = create_latin1_repo
|
||||
assert_equal 0, latin1_repo.changesets.count
|
||||
latin1_repo.fetch_changesets
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user