From 4e04f92c65fb54f6905190748669607eb76d944d Mon Sep 17 00:00:00 2001 From: greshilov Date: Fri, 27 Jul 2018 12:03:51 +0300 Subject: [python] Update python test scripts --- tools/python/run_desktop_tests.py | 10 +++++++++- tools/python/testlog_to_xml_converter.py | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'tools') 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() -- cgit v1.2.3