aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-08-22 14:47:21 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:42:15 +0100
commit9de7fe11967576f4a8b24e653c6b9a02e5f6d85b (patch)
treecffdb2fc6a510be1501a4b854c0fd41f52af4a21 /meta/lib/oeqa/oetest.py
parentf6186b4204dcc421b4e616774315c8a2a77fb5c5 (diff)
downloadopenembedded-core-9de7fe11967576f4a8b24e653c6b9a02e5f6d85b.tar.gz
lib/oeqa: make it possible to restart the target
Tweak QemuRunner so we can actually restart the qemu target in a test (if we want more memory for example). Also add a restart method to the base test class so that tests can use it. Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py7
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):