summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-16 13:16:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-17 07:47:07 +0100
commit9be8c505426eb2bf9662fce32dc2fa0fc2ccdc92 (patch)
tree08919de8500b855a8b861832088d3d0d93084c0d /meta/lib
parent0a67a4d40fd0f6be89c9403101b66b58933f1940 (diff)
downloadpoky-9be8c505426eb2bf9662fce32dc2fa0fc2ccdc92.tar.gz
oetest: Drop getResults usage from oeRuntimeTest
Despite the name, this code is only used from testexport and the function in question is broken on python 3.8 onwards. Since nobody is using it and the failure log handling here is of questionable benefit anyway, drop it. We should be using the same code for normal test runs and testexport, not having two different codepaths. (From OE-Core rev: 19919109f20c3b45ebc26b9b92594fbdc2cbc79d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-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