From: Dorinda Bassey Date: Thu, 18 Mar 2021 15:49:40 +0000 (+0100) Subject: devshell.bbclass: Exceptions displayed within devpyshell X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~8370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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, "") if not more: buf = [] + sys.stderr.flush() prompt(more) except KeyboardInterrupt: i.write("\nKeyboardInterrupt\n")