Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgreshilov <slovaricheg@gmail.com>2018-07-27 12:03:51 +0300
committertherearesomewhocallmetim <dtv@mapswithme.com>2018-08-01 11:06:49 +0300
commit4e04f92c65fb54f6905190748669607eb76d944d (patch)
tree1b065a820f86d7701d172f977e78d5be52dd0fe9 /tools
parent9725169aa314aa2b0499d3fe2a97c7a06f703f7b (diff)
[python] Update python test scripts
Diffstat (limited to 'tools')
-rwxr-xr-xtools/python/run_desktop_tests.py10
-rwxr-xr-xtools/python/testlog_to_xml_converter.py1
2 files changed, 10 insertions, 1 deletions
diff --git a/tools/python/run_desktop_tests.py b/tools/python/run_desktop_tests.py
index b480cfc05f..1874acbb0d 100755
--- a/tools/python/run_desktop_tests.py
+++ b/tools/python/run_desktop_tests.py
@@ -19,7 +19,7 @@ be found, i.e. the tests that were specified in the skip list, but do not exist.
from __future__ import print_function
from optparse import OptionParser
-from os import listdir, remove
+from os import listdir, remove, environ
from random import shuffle
import random
import socket
@@ -153,8 +153,16 @@ class TestRunner:
test_file_with_keys = self.test_file_with_keys(test_file)
logging.info(test_file_with_keys)
+
+ # Fix float parsing
+ # See more here:
+ # https://github.com/mapsme/omim/pull/996
+ current_env = environ
+ current_env['LC_NUMERIC'] = 'C'
+ #
process = subprocess.Popen("{tests_path}/{test_file} 2>> {logfile}".
format(tests_path=self.workspace_path, test_file=test_file_with_keys, logfile=self.logfile),
+ env=current_env,
shell=True,
stdout=subprocess.PIPE)
logging.info("Pid: {0}".format(process.pid))
diff --git a/tools/python/testlog_to_xml_converter.py b/tools/python/testlog_to_xml_converter.py
index 4ae31475c8..88831b42ac 100755
--- a/tools/python/testlog_to_xml_converter.py
+++ b/tools/python/testlog_to_xml_converter.py
@@ -156,6 +156,7 @@ class Parser:
if not self.test_info:
self.test_info = TestInfo()
self.test_info.set_exe_name(end_exe)
+ self.test_info.set_name("SOME_TESTS_FAILED")
self.test_info.set_test_result(TestInfo.FAILED)
self.append_to_xml()