From 33274012640be85ea2d1349cd7e3e43e9d8f1ca7 Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Thu, 15 Oct 2015 06:29:37 +0000 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/oetest.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/lib/oeqa/oetest.py') 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): print ("%s dump data stored in %s" % (self._testMethodName, self.tc.host_dumper.dump_dir)) + self.tearDownLocal() + + # Method to be run after tearDown and implemented by child classes + def tearDownLocal(self): + pass + #TODO: use package_manager.py to install packages on any type of image def install_packages(self, packagelist): for package in packagelist: -- cgit v1.2.3-54-g00ecf