165 |
165 |
end
|
166 |
166 |
|
167 |
167 |
if File.directory?(REPOSITORY_PATH_NON_ASCII) && RUN_LATIN1_OUTPUT_TEST
|
|
168 |
# https://www.redmine.org/issues/42024
|
|
169 |
def skip_bzr_failure_on_ubuntu24
|
|
170 |
return unless File.exist?('/etc/os-release')
|
|
171 |
|
|
172 |
os_release = File.read('/etc/os-release')
|
|
173 |
name = os_release[/^NAME="(.+?)"$/, 1]
|
|
174 |
version = os_release[/^VERSION_ID="(.+?)"$/, 1]
|
|
175 |
|
|
176 |
if name == 'Ubuntu' && version == '24.04'
|
|
177 |
skip 'bzr command fails on Ubuntu 24.04, causing this test to fail'
|
|
178 |
end
|
|
179 |
end
|
|
180 |
|
168 |
181 |
def test_cat_latin1_path
|
|
182 |
skip_bzr_failure_on_ubuntu24
|
|
183 |
|
169 |
184 |
latin1_repo = create_latin1_repo
|
170 |
185 |
buf =
|
171 |
186 |
latin1_repo.cat(
|
... | ... | |
186 |
201 |
end
|
187 |
202 |
|
188 |
203 |
def test_annotate_latin1_path
|
|
204 |
skip_bzr_failure_on_ubuntu24
|
|
205 |
|
189 |
206 |
latin1_repo = create_latin1_repo
|
190 |
207 |
ann1 =
|
191 |
208 |
latin1_repo.annotate(
|
... | ... | |
206 |
223 |
end
|
207 |
224 |
|
208 |
225 |
def test_diff_latin1_path
|
|
226 |
skip_bzr_failure_on_ubuntu24
|
|
227 |
|
209 |
228 |
latin1_repo = create_latin1_repo
|
210 |
229 |
diff1 =
|
211 |
230 |
latin1_repo.diff(
|
... | ... | |
217 |
236 |
end
|
218 |
237 |
|
219 |
238 |
def test_entries_latin1_path
|
|
239 |
skip_bzr_failure_on_ubuntu24
|
|
240 |
|
220 |
241 |
latin1_repo = create_latin1_repo
|
221 |
242 |
entries = latin1_repo.entries("test-#{CHAR_1_UTF8_HEX}-dir", 2)
|
222 |
243 |
assert_kind_of Redmine::Scm::Adapters::Entries, entries
|
... | ... | |
227 |
248 |
end
|
228 |
249 |
|
229 |
250 |
def test_entry_latin1_path
|
|
251 |
skip_bzr_failure_on_ubuntu24
|
|
252 |
|
230 |
253 |
latin1_repo = create_latin1_repo
|
231 |
254 |
["test-#{CHAR_1_UTF8_HEX}-dir",
|
232 |
255 |
"/test-#{CHAR_1_UTF8_HEX}-dir",
|
... | ... | |
245 |
268 |
end
|
246 |
269 |
|
247 |
270 |
def test_changeset_latin1_path
|
|
271 |
skip_bzr_failure_on_ubuntu24
|
|
272 |
|
248 |
273 |
latin1_repo = create_latin1_repo
|
249 |
274 |
assert_equal 0, latin1_repo.changesets.count
|
250 |
275 |
latin1_repo.fetch_changesets
|