=== modified file 'lava_dispatcher/lava_test_shell.py'
@@ -169,9 +169,11 @@
w(path, attrvalue)
-def _result_from_dir(dir):
+def _result_from_dir(dir, test_case_id=None):
+ if not test_case_id:
+ test_case_id = os.path.basename(dir)
result = {
- 'test_case_id': os.path.basename(dir),
+ 'test_case_id': test_case_id
}
for fname in 'result', 'measurement', 'units', 'message', 'timestamp', 'duration':
=== modified file 'lava_dispatcher/signals/__init__.py'
@@ -105,10 +105,11 @@
scratch_dir = self.testdef_obj.context.client.target_device.scratch_dir
rdir = tempfile.mkdtemp(dir=scratch_dir)
try:
+ tcid = test_result['test_case_id']
_result_to_dir(test_result, rdir)
yield rdir
test_result.clear()
- test_result.update(_result_from_dir(rdir))
+ test_result.update(_result_from_dir(rdir, tcid))
finally:
rmtree(rdir)