summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-23 12:16:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-23 22:13:08 +0100
commit7d0437c4e8063362d9ca127dbd439208fe6ebda4 (patch)
tree0f0aa10bfa692387ffffae18de225b04f026dffb /scripts/lib/scriptutils.py
parent3d06c164dd729484ac1c73e3c73d3b6018749877 (diff)
downloadpoky-7d0437c4e8063362d9ca127dbd439208fe6ebda4.tar.gz
bitbake: build: Fix log flushing race
There is a race between sending the TaskFailed event which could trigger the UI to look at the logs and flushing and closing the log files. Reverse the order of the finally clause and the exception handling to ensure we've handled the logfiles before sending the task events. This should fix a race seen in bblogging.BitBakeLogging.test_python_exit_logging (Bitbake rev: 032190aac31604d37740d8aecf6e74a5448de358) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions