=== modified file 'lava_test/test_definitions/tiobench.py'
@@ -39,7 +39,7 @@
class TIObenchTestParser(TestParser):
- def parse(self):
+ def parse(self, artifacts):
# Pattern to match the test case name
pattern1="(?P<test_id>^(Sequential|Random) (Writes|Reads))"
# Pattern to match the parameter details and measurement
@@ -50,7 +50,7 @@
pat2 = re.compile(pattern2)
tc_id = None
with open(filename) as fd:
- for line in fd:
+ for lineno, line in enumerate(fd, 1):
match1 = pat1.match(line)
match2 = pat2.search(line)
if match1:
@@ -62,11 +62,10 @@
results['test_case_id'] = (
'%s_%sMBfilesize_%sbytesblksize') % (
tc_id, filesize, blks_size)
- self.results['test_results'].append(results)
-
- if self.appendall:
- self.appendtoall(self.appendall)
- self.fixmeasurements()
+ results["log_filename"] = "testoutput.log"
+ results["log_lineno"] = lineno
+ self.results['test_results'].append(
+ self.analyze_test_result(results))
tiobench_inst = TestInstaller(INSTALLSTEPS, url=URL,
md5=MD5)