Skip to contentSkip to conversation

devshell.bbclass: Exceptions displayed within devpyshell

PATCH New Dorinda 1 participant 1 message Mar 18, 2021

lore
Share & tools
lore

Dorinda

author
#0 lore raw

PATCH 1/1 devshell.bbclass: Exceptions displayed within devpyshell

From: Dorinda Bassey <[email protected]>

If you type something into devpyshell, an exception should be triggered, but that exception isn't printed out because it is not being flushed out of the buffer. This patch fixes that issue.

[YOCTO #12156]

---
 meta/classes/devshell.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/devshell.bbclass +1 -0
index fdf7dc100f..76dd0b42ee 100644
@@ -128,6 +128,7 @@ def devpyshell(d):
                     more = i.runsource(source, "<pyshell>")
                     if not more:
                         buf = []
+                    sys.stderr.flush()
                     prompt(more)
             except KeyboardInterrupt:
                 i.write("\nKeyboardInterrupt\n")
Signature · 1 line
2.17.1