summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-10-15 06:29:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-19 17:57:59 +0100
commit33274012640be85ea2d1349cd7e3e43e9d8f1ca7 (patch)
tree700508cb07d9a1ce71ae6f5ef492b5aa8978d5b2
parent3b7853a065bb3ca1fefd9da77970dc538117ad19 (diff)
downloadpoky-33274012640be85ea2d1349cd7e3e43e9d8f1ca7.tar.gz
oetest: Add tearDownLocal class
In the current state there are some runtime test that don't run the tearDown method fromm oeRuntimeTest class because the tearDown class is overwritten in the child class. This change adds tearDownLocal method in oeRuntimeTest class that will run after tearDown. This method can be overwritten in the child classes to implement specific test functionality. [YOCTO #8465] (From OE-Core rev: b5917f8032d6965596868b2fe01da4e0682e2804) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/oetest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index e3bbc46905..6f9edec58d 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -196,6 +196,12 @@ class oeRuntimeTest(oeTest):
196 print ("%s dump data stored in %s" % (self._testMethodName, 196 print ("%s dump data stored in %s" % (self._testMethodName,
197 self.tc.host_dumper.dump_dir)) 197 self.tc.host_dumper.dump_dir))
198 198
199 self.tearDownLocal()
200
201 # Method to be run after tearDown and implemented by child classes
202 def tearDownLocal(self):
203 pass
204
199 #TODO: use package_manager.py to install packages on any type of image 205 #TODO: use package_manager.py to install packages on any type of image
200 def install_packages(self, packagelist): 206 def install_packages(self, packagelist):
201 for package in packagelist: 207 for package in packagelist: