1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-21 18:18:41 +00:00

Merge pull request #452 from setrofim/master

Device: raise RuntimeError in _check_ready
This commit is contained in:
marcbonnici 2017-08-02 13:43:06 +01:00 committed by GitHub
commit 220e0962e1

View File

@ -599,7 +599,7 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method
def _check_ready(self): def _check_ready(self):
if not self._is_ready: if not self._is_ready:
raise AttributeError('Device not ready.') raise RuntimeError('Device not ready (has connect() been called?)')
def _get_core_cluster(self, core): def _get_core_cluster(self, core):
"""Returns the first cluster that has cores of the specified type. Raises """Returns the first cluster that has cores of the specified type. Raises