diff options
author | Koen Kooi <koen@openembedded.org> | 2008-03-10 16:33:51 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-03-10 16:33:51 +0000 |
commit | fc1c7cd9a659ccf3eeaa728dec2bc9bc128e1658 (patch) | |
tree | 762e0989de4bcaa75d210340516298401a2c5c13 | |
parent | 0938c144f1633b72488e118c38bae614819e340f (diff) |
sepukku bbclass: change 'bugname' far so bugreports get grouped by PN-PV instead of PN-PV-PR-task
* mentions failed task now in bug comment
-rw-r--r-- | classes/seppuku.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index 2e097a812e..02f4b9a925 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -329,12 +329,11 @@ python seppuku_eventhandler() { file = None if name == "TaskFailed": - bugname = "%(package)s-%(pv)s-%(pr)s-%(task)s" % { "package" : bb.data.getVar("PN", data, True), + bugname = "%(package)s-%(pv)s-autobuild" % { "package" : bb.data.getVar("PN", data, True), "pv" : bb.data.getVar("PV", data, True), - "pr" : bb.data.getVar("PR", data, True), - "task" : e.task } + } log_file = glob.glob("%s/log.%s.*" % (bb.data.getVar('T', event.data, True), event.task)) - text = "The package failed to build at %s for machine %s" % (bb.data.getVar('DATETIME', data, True), bb.data.getVar( 'MACHINE', data, True ) ) + text = "The %s step failed at %s for machine %s" % (e.task, bb.data.getVar('DATETIME', data, True), bb.data.getVar( 'MACHINE', data, True ) ) if len(log_file) != 0: print >> debug_file, "Adding log file %s" % log_file[0] file = open(log_file[0], 'r') |