From 9d0e439c3ee9a2928da1293273753ee68cec770e Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Tue, 26 May 2015 16:12:49 +0100 Subject: [PATCH] Added raw result object to future exporter implementation --- workspace_tools/compliance/ioper_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace_tools/compliance/ioper_runner.py b/workspace_tools/compliance/ioper_runner.py index 223d0acedd..8d4d3f2044 100644 --- a/workspace_tools/compliance/ioper_runner.py +++ b/workspace_tools/compliance/ioper_runner.py @@ -55,7 +55,8 @@ class IOperTestRunner(): 'mbed-enabled' - let's try to check if this device is mbed-enabled 'basic' - just simple, passive tests (no device flashing) """ - self.requested_scope = scope + self.requested_scope = scope # Test scope given by user + self.raw_test_results = [] # Raw test results, can be used by exporters # Test scope definitions self.SCOPE_BASIC = 'basic' # Basic tests, sanity checks @@ -91,6 +92,7 @@ class IOperTestRunner(): if self.scopes[self.requested_scope] >= self.scopes[test_case.scope]: res = test_case.test(param=mut) result.extend(res) + self.raw_test_results.append(res) columns = ['Platform', 'Result', 'Scope', 'Description'] pt = PrettyTable(columns)