mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
sysfs_extractor: fixed pulled files verification.
When no files are listed for one the specified directoris, the instrument checks whether there are any files in that directory on the device. If that directory itself does not exist; that will result in an error. This is now handled correctly.
This commit is contained in:
parent
9aadb9087a
commit
94cc17271e
@ -166,7 +166,9 @@ class SysfsExtractor(Instrument):
|
||||
for paths in self.device_and_host_paths:
|
||||
after_dir = paths[self.AFTER_PATH]
|
||||
dev_dir = paths[self.DEVICE_PATH].strip('*') # remove potential trailing '*'
|
||||
if not os.listdir(after_dir) and self.device.listdir(dev_dir):
|
||||
if (not os.listdir(after_dir) and
|
||||
self.device.file_exists(dev_dir) and
|
||||
self.device.listdir(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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user