From: Michael Mess Date: Sat, 30 May 2026 15:10:00 +0000 (+0200) Subject: Corrected test case broken for locales that uses , instead of . for decimal numbers... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5cf7c50524efc1b8ea85accc2ea3f1ec0ad31ecc;p=thirdparty%2Frsync.git Corrected test case broken for locales that uses , instead of . for decimal numbers in human readable form. --- diff --git a/testsuite/output-options_test.py b/testsuite/output-options_test.py index 1d57c086..61a4d4ba 100644 --- a/testsuite/output-options_test.py +++ b/testsuite/output-options_test.py @@ -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):