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

instruments/SysfsExtractor: Add extracted directories as artifacts

Add the directories that have been extracted by the `SysfsExtractor` and
derived instruments as artifacts.
This commit is contained in:
Marc Bonnici 2019-07-18 16:41:47 +01:00
parent 4bb1f4988f
commit 12bb21045e

View File

@ -174,8 +174,14 @@ class SysfsExtractor(Instrument):
self.target.list_directory(dev_dir)):
self.logger.error('sysfs files were not pulled from the device.')
self.device_and_host_paths.remove(paths) # Path is removed to skip diffing it
for _, before_dir, after_dir, diff_dir in self.device_and_host_paths:
for dev_dir, before_dir, after_dir, diff_dir in self.device_and_host_paths:
diff_sysfs_dirs(before_dir, after_dir, diff_dir)
context.add_artifact('{} [before]'.format(dev_dir), before_dir,
kind='data', classifiers={'stage': 'before'})
context.add_artifact('{} [after]'.format(dev_dir), after_dir,
kind='data', classifiers={'stage': 'after'})
context.add_artifact('{} [diff]'.format(dev_dir), diff_dir,
kind='data', classifiers={'stage': 'diff'})
def teardown(self, context):
self._one_time_setup_done = []