mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-20 09:40:50 +01: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):
|
def init(self):
|
||||||
pass
|
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
|
Push a file to the gem5 device using VirtIO
|
||||||
|
|
||||||
@ -389,7 +390,8 @@ class BaseGem5Device(object):
|
|||||||
self.gem5_shell("ls -al /mnt/obb/")
|
self.gem5_shell("ls -al /mnt/obb/")
|
||||||
self.logger.debug("Push complete.")
|
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
|
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)
|
shutil.move(os.path.join(self.gem5outdir, filename), dest)
|
||||||
self.logger.debug("Pull complete.")
|
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 """
|
""" Delete a file on the device """
|
||||||
self._check_ready()
|
self._check_ready()
|
||||||
self.gem5_shell("rm '{}'".format(filepath))
|
self.gem5_shell("rm '{}'".format(filepath))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user