diff options
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index 7f6baa4038..4a406e75ca 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py @@ -81,6 +81,13 @@ class oeRuntimeTest(unittest.TestCase): else: return False + @classmethod + def restartTarget(self,params=None): + + if oeRuntimeTest.tc.qemu.restart(params): + oeRuntimeTest.tc.target.host = oeRuntimeTest.tc.qemu.ip + else: + raise Exception("Restarting target failed") def getmodule(pos=2): |