These help to investigate if any of the functions hang when test target hangs.
Signed-off-by: Mikko Rapeli <[email protected]> --- meta/lib/oeqa/utils/qemurunner.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index eb6d3e8c57..ed44036758 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -533,12 +533,16 @@ class QemuRunner: return True def stop(self): + self.logger.debug("Stopping QemuRunner") if hasattr(self, "origchldhandler"): signal.signal(signal.SIGCHLD, self.origchldhandler) + self.logger.debug("Stopping thread") self.stop_thread() + self.logger.debug("Stopping qemu system") self.stop_qemu_system() if self.runqemu: if hasattr(self, "monitorpid"): + self.logger.debug("Sending SIGKILL to monitorpid") os.kill(self.monitorpid, signal.SIGKILL) self.logger.debug("Sending SIGTERM to runqemu") try: @@ -559,12 +563,15 @@ class QemuRunner: self.runqemu_exited = True if hasattr(self, 'qmp') and self.qmp: + self.logger.debug("Closing QMP") self.qmp.close() self.qmp = None if hasattr(self, 'server_socket') and self.server_socket: + self.logger.debug("Closing server socket") self.server_socket.close() self.server_socket = None if hasattr(self, 'threadsock') and self.threadsock: + self.logger.debug("Closing threadsock") self.threadsock.close() self.threadsock = None self.qemupid = None @@ -576,6 +583,7 @@ class QemuRunner: # We raced, ignore pass if self.monitorpipe: + self.logger.debug("Closing monitorpipe") self.monitorpipe.close() def stop_qemu_system(self): -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176201): https://lists.openembedded.org/g/openembedded-core/message/176201 Mute This Topic: https://lists.openembedded.org/mt/96401365/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
