summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/oetest.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index cf2cb30a3e..cf417db0d4 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -28,7 +28,7 @@ try:
28 import oeqa.sdkext 28 import oeqa.sdkext
29except ImportError: 29except ImportError:
30 pass 30 pass
31from oeqa.utils.decorators import LogResults, gettag, getResults 31from oeqa.utils.decorators import LogResults, gettag
32 32
33logger = logging.getLogger("BitBake") 33logger = logging.getLogger("BitBake")
34 34
@@ -109,20 +109,6 @@ class oeRuntimeTest(oeTest):
109 def tearDown(self): 109 def tearDown(self):
110 # Uninstall packages in the DUT 110 # Uninstall packages in the DUT
111 self.tc.install_uninstall_packages(self.id(), False) 111 self.tc.install_uninstall_packages(self.id(), False)
112
113 res = getResults()
114 # If a test fails or there is an exception dump
115 # for QemuTarget only
116 if (type(self.target).__name__ == "QemuTarget" and
117 (self.id() in res.getErrorList() or
118 self.id() in res.getFailList())):
119 self.tc.host_dumper.create_dir(self._testMethodName)
120 self.tc.host_dumper.dump_host()
121 self.target.target_dumper.dump_target(
122 self.tc.host_dumper.dump_dir)
123 print ("%s dump data stored in %s" % (self._testMethodName,
124 self.tc.host_dumper.dump_dir))
125
126 self.tearDownLocal() 112 self.tearDownLocal()
127 113
128 # Method to be run after tearDown and implemented by child classes 114 # Method to be run after tearDown and implemented by child classes