summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorDorinda Bassey <dorindabassey@gmail.com>2021-03-18 16:49:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-20 18:50:05 +0000
commit9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d (patch)
treeb34f9bfca9226dd7698d7350fa0755b3194b298c /meta/classes
parent665841955f2b51f34d6493c8db3296333dc53fc4 (diff)
downloadopenembedded-core-9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d.tar.gz
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 <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/devshell.bbclass1
1 files changed, 1 insertions, 0 deletions
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, "<pyshell>")
if not more:
buf = []
+ sys.stderr.flush()
prompt(more)
except KeyboardInterrupt:
i.write("\nKeyboardInterrupt\n")