1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

telemetry: ignore errors in dividuation subtests.

check_output will ignore error code 1 returned by telemetry execution,
as this happens when individiual sub-tests and partial results may, and
should, still be extracted.
This commit is contained in:
Sergei Trofimov 2015-04-21 15:12:48 +01:00
parent 5035fe6f44
commit aef7f52f96

View File

@ -11,8 +11,8 @@ from wlauto.utils.misc import check_output, get_null, get_meansd
from wlauto.utils.types import numeric, identifier
RESULT_REGEX = re.compile(r'RESULT ([^:]+): ([^=]+)\s*=\s*' # preamble and test/metric name
r'(\[([^\]]+)\]|(\S+))' # value
RESULT_REGEX = re.compile(r'RESULT ([^:]+): ([^=]+)\s*=\s*' # preamble and test/metric name
r'(\[([^\]]+)\]|(\S+))' # value
r'\s*(\S+)') # units
@ -117,7 +117,7 @@ class Telemetry(Workload):
def run(self, context):
self.logger.debug(self.command)
self.raw_output, _ = check_output(self.command, shell=True, timeout=self.run_timeout)
self.raw_output, _ = check_output(self.command, shell=True, timeout=self.run_timeout, ignore=1)
def update_result(self, context):
if not self.raw_output: