mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Gem5Device: Fix runtime error caused by lack of kwargs
This commit is contained in:
parent
1b31d8ef6f
commit
00c9bdc2a6
@ -363,7 +363,8 @@ class BaseGem5Device(object):
|
||||
def init(self):
|
||||
pass
|
||||
|
||||
def push_file(self, source, dest, _):
|
||||
# pylint: disable=unused-argument
|
||||
def push_file(self, source, dest, **kwargs):
|
||||
"""
|
||||
Push a file to the gem5 device using VirtIO
|
||||
|
||||
@ -389,7 +390,8 @@ class BaseGem5Device(object):
|
||||
self.gem5_shell("ls -al /mnt/obb/")
|
||||
self.logger.debug("Push complete.")
|
||||
|
||||
def pull_file(self, source, dest, _):
|
||||
# pylint: disable=unused-argument
|
||||
def pull_file(self, source, dest, **kwargs):
|
||||
"""
|
||||
Pull a file from the gem5 device using m5 writefile
|
||||
|
||||
@ -429,7 +431,8 @@ class BaseGem5Device(object):
|
||||
shutil.move(os.path.join(self.gem5outdir, filename), dest)
|
||||
self.logger.debug("Pull complete.")
|
||||
|
||||
def delete_file(self, filepath, _):
|
||||
# pylint: disable=unused-argument
|
||||
def delete_file(self, filepath, **kwargs):
|
||||
""" Delete a file on the device """
|
||||
self._check_ready()
|
||||
self.gem5_shell("rm '{}'".format(filepath))
|
||||
|
Loading…
x
Reference in New Issue
Block a user