summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-07-05 09:31:44 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-07-05 15:00:58 +0000
commita9613ba3f16cd960e222a37d83ba4cbb6810a6d8 (patch)
tree08742f787778be1e7f25527b76dda8d95758ef07
parentb7744e0b05255fc468db2af215ba94eca4b7757b (diff)
Testlib: generate_expected_output.py: Run in C locale
Otherwise, float numbers are formatted using a decimal comma in German, causing huge diffs and failures. Change-Id: Icd85a293d0564cac6be244eb0793611920d0c89c Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rwxr-xr-xtests/auto/testlib/selftests/generate_expected_output.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/generate_expected_output.py b/tests/auto/testlib/selftests/generate_expected_output.py
index 83c617fee5..b917dacc78 100755
--- a/tests/auto/testlib/selftests/generate_expected_output.py
+++ b/tests/auto/testlib/selftests/generate_expected_output.py
@@ -109,6 +109,7 @@ if isWindows:
exit()
tests = sys.argv[1:]
+os.environ['LC_ALL'] = 'C'
if len(tests) == 0:
tests = subdirs()
print("Generating " + str(len(tests)) + " test results for: " + qtver + " in: " + rootPath)