summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDorinda Bassey <dorindabassey@gmail.com>2021-03-18 16:49:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-19 12:55:20 +0100
commitfb086586d8a1c02be9ae9f0374061d79198ea519 (patch)
tree218dd473d779608c9f40fe8499880ab8883802ac /meta
parentebd1ea905d2c0c12f631902e825af899fa51253d (diff)
downloadpoky-fb086586d8a1c02be9ae9f0374061d79198ea519.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] (From OE-Core rev: 6d3f740c2a6143d20760311cfdff268ad2e8dce4) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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):
128 more = i.runsource(source, "<pyshell>") 128 more = i.runsource(source, "<pyshell>")
129 if not more: 129 if not more:
130 buf = [] 130 buf = []
131 sys.stderr.flush()
131 prompt(more) 132 prompt(more)
132 except KeyboardInterrupt: 133 except KeyboardInterrupt:
133 i.write("\nKeyboardInterrupt\n") 134 i.write("\nKeyboardInterrupt\n")