[oe-commits] [bitbake] branch 1.30 updated: cooker: pass exception to finishAsyncCommand

git at git.openembedded.org git at git.openembedded.org
Thu Apr 14 13:56:44 UTC 2016


rpurdie pushed a commit to branch 1.30
in repository bitbake.

The following commit(s) were added to refs/heads/1.30 by this push:
       new  98a2c37   cooker: pass exception to finishAsyncCommand
98a2c37 is described below

commit 98a2c37e077b16e3bc8bb102bd18b293130d15a4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Feb 29 14:23:33 2016 +0000

    cooker: pass exception to finishAsyncCommand
    
    An invalid task causes bitbake to exit incorrectly, firing a
    CommandCompleted event rather than a CommandFailed one. This
    means that clients listening for CommandFailed events are
    unable to detect the build failure even though one occurred.
    
    Passing an exception string to finishAsyncCommand when a task
    fails causes the CommandFailed event to be fired correctly.
    
    [YOCTO #9087]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 3747e08..4068b8f 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1349,7 +1349,7 @@ class BBCooker:
                 failures += len(exc.args)
                 retval = False
             except SystemExit as exc:
-                self.command.finishAsyncCommand()
+                self.command.finishAsyncCommand(str(exc))
                 return False
 
             if not retval:
@@ -1385,7 +1385,7 @@ class BBCooker:
                 failures += len(exc.args)
                 retval = False
             except SystemExit as exc:
-                self.command.finishAsyncCommand()
+                self.command.finishAsyncCommand(str(exc))
                 return False
 
             if not retval:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list