mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
Getters: Added support for finding revent files.
Revent files are automatically placed in the sub folder `revent_files` in the workload directory when recording, therefore when trying to retrieve recordings the getter now looks inside of the sub directory.
This commit is contained in:
parent
2406d01672
commit
7815df59d4
@ -80,7 +80,16 @@ def get_from_location(basepath, resource):
|
||||
path = os.path.join(basepath, 'bin', resource.abi, resource.filename)
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
elif resource.kind in ['apk', 'jar', 'revent']:
|
||||
elif resource.kind == 'revent':
|
||||
path = os.path.join(basepath, 'revent_files')
|
||||
if os.path.exists(path):
|
||||
files = get_by_extension(path, resource.kind)
|
||||
found_resource = get_generic_resource(resource, files)
|
||||
if found_resource:
|
||||
return found_resource
|
||||
files = get_by_extension(basepath, resource.kind)
|
||||
return get_generic_resource(resource, files)
|
||||
elif resource.kind in ['apk', 'jar']:
|
||||
files = get_by_extension(basepath, resource.kind)
|
||||
return get_generic_resource(resource, files)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user