mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-06-07 21:58:06 -04:00
Corrected test case broken for locales that uses , instead of . for decimal numbers in human readable form.
This commit is contained in:
committed by
Andrew Tridgell
parent
ad3bfab05d
commit
5cf7c50524
@@ -108,7 +108,7 @@ make_data_file(src / 'big', 50_000)
|
||||
plain = out('-a', '--stats', f'{src}/', f'{TODIR}/').stdout
|
||||
rmtree(TODIR)
|
||||
human = out('-a', '-h', '--stats', f'{src}/', f'{TODIR}/').stdout
|
||||
suffix_re = r'Total file size: [\d.]+[KMG]'
|
||||
suffix_re = r'Total file size: [\d.,]+[KMG]'
|
||||
if not re.search(suffix_re, human):
|
||||
test_fail(f"-h did not use a human-readable unit suffix:\n{human}")
|
||||
if re.search(suffix_re, plain):
|
||||
|
||||
Reference in New Issue
Block a user