mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-22 02:29:10 +00:00
BaseLinuxDevice: added insmod() method.
Allows insting a kernel module on the target from a .ko located on the host.
This commit is contained in:
parent
dc07c8d87e
commit
eaabe01fa5
@ -840,6 +840,12 @@ class LinuxDevice(BaseLinuxDevice):
|
|||||||
entries.append(LsmodEntry(name, size, use_count, used_by))
|
entries.append(LsmodEntry(name, size, use_count, used_by))
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
|
def insmod(self, path):
|
||||||
|
"""Install a kernel module located on the host on the target device."""
|
||||||
|
target_path = self.path.join(self.working_directory, os.path.basename(path))
|
||||||
|
self.push_file(path, target_path)
|
||||||
|
self.execute('insmod {}'.format(target_path), as_root=True)
|
||||||
|
|
||||||
def ping(self):
|
def ping(self):
|
||||||
try:
|
try:
|
||||||
# May be triggered inside initialize()
|
# May be triggered inside initialize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user