From c533da3f3884bcedd230361265cedc61a75a5a13 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Fri, 20 Nov 2015 13:10:35 +0000 Subject: [PATCH] Gem5Device: Fix issue with init arguments - This patch addresses an issue with the arguments passed the BaseGem5Device __init__. With this patch these are no longer passed in as they are not required in the base device implementation. --- wlauto/common/gem5/device.py | 2 +- wlauto/devices/android/gem5/__init__.py | 2 +- wlauto/devices/linux/gem5/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wlauto/common/gem5/device.py b/wlauto/common/gem5/device.py index 262b706b..2ee1eb4b 100644 --- a/wlauto/common/gem5/device.py +++ b/wlauto/common/gem5/device.py @@ -105,7 +105,7 @@ class BaseGem5Device(object): return True # pylint: disable=E0203 - def __init__(self, _): + def __init__(self): self.logger = logging.getLogger('gem5Device') # The gem5 subprocess diff --git a/wlauto/devices/android/gem5/__init__.py b/wlauto/devices/android/gem5/__init__.py index cbc60de8..5637e07a 100644 --- a/wlauto/devices/android/gem5/__init__.py +++ b/wlauto/devices/android/gem5/__init__.py @@ -89,7 +89,7 @@ class Gem5AndroidDevice(BaseGem5Device, AndroidDevice): def __init__(self, **kwargs): self.logger = logging.getLogger('Gem5AndroidDevice') AndroidDevice.__init__(self, **kwargs) - BaseGem5Device.__init__(self, **kwargs) + BaseGem5Device.__init__(self) def login_to_device(self): pass diff --git a/wlauto/devices/linux/gem5/__init__.py b/wlauto/devices/linux/gem5/__init__.py index 9a8a76c7..12f51764 100644 --- a/wlauto/devices/linux/gem5/__init__.py +++ b/wlauto/devices/linux/gem5/__init__.py @@ -88,7 +88,7 @@ class Gem5LinuxDevice(BaseGem5Device, LinuxDevice): def __init__(self, **kwargs): self.logger = logging.getLogger('Gem5LinuxDevice') LinuxDevice.__init__(self, **kwargs) - BaseGem5Device.__init__(self, **kwargs) + BaseGem5Device.__init__(self) def login_to_device(self): # Wait for the login prompt