From 6d3f740c2a6143d20760311cfdff268ad2e8dce4 Mon Sep 17 00:00:00 2001 From: Dorinda Bassey Date: Thu, 18 Mar 2021 16:49:40 +0100 Subject: devshell.bbclass: Exceptions displayed within devpyshell 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] Signed-off-by: Dorinda Bassey Signed-off-by: Richard Purdie (cherry picked from commit 9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d) Signed-off-by: Anuj Mittal --- meta/classes/devshell.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass index fdf7dc100f..76dd0b42ee 100644 --- a/meta/classes/devshell.bbclass +++ b/meta/classes/devshell.bbclass @@ -128,6 +128,7 @@ def devpyshell(d): more = i.runsource(source, "") if not more: buf = [] + sys.stderr.flush() prompt(more) except KeyboardInterrupt: i.write("\nKeyboardInterrupt\n") -- cgit 1.2.3-korg