]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Corrected test case broken for locales that uses , instead of . for decimal numbers...
authorMichael Mess <michael@michaelmess.de>
Sat, 30 May 2026 15:10:00 +0000 (17:10 +0200)
committerAndrew Tridgell <andrew@tridgell.net>
Tue, 2 Jun 2026 08:23:40 +0000 (18:23 +1000)
testsuite/output-options_test.py

index 1d57c086aa430029b542b71af4a0483e0601fec4..61a4d4ba9a923d5e9caf6b0363f621312aaa5549 100644 (file)
@@ -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):