aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDorinda Bassey <dorindabassey@gmail.com>2021-03-18 16:49:40 +0100
committerAnuj Mittal <anuj.mittal@intel.com>2021-04-09 13:56:16 +0800
commit6d3f740c2a6143d20760311cfdff268ad2e8dce4 (patch)
treec3298e1a9c3cea3b5f589635b11c0ebc4d24b666
parent7e75801c9a76d7bcd2fed3a6522214f483966166 (diff)
downloadopenembedded-core-contrib-6d3f740c2a6143d20760311cfdff268ad2e8dce4.tar.gz
openembedded-core-contrib-6d3f740c2a6143d20760311cfdff268ad2e8dce4.tar.bz2
openembedded-core-contrib-6d3f740c2a6143d20760311cfdff268ad2e8dce4.zip
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> (cherry picked from commit 9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-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 fdf7dc100fa..76dd0b42eea 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")