seppuku: add PN to comment line for attachment (as discussed on ml)
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Sun, 16 Mar 2008 10:38:54 +0000 (10:38 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Sun, 16 Mar 2008 10:38:54 +0000 (10:38 +0000)
classes/seppuku.bbclass

index c6cde6e..e158339 100644 (file)
@@ -334,7 +334,7 @@ python seppuku_eventhandler() {
                                                                "pv"      : bb.data.getVar("PV", data, True),
                                                                }  
             log_file = glob.glob("%s/log.%s.*" % (bb.data.getVar('T', event.data, True), event.task))
-            text     = "The %s step failed at %s for machine %s" % (e.task, bb.data.getVar('DATETIME', data, True), bb.data.getVar( 'MACHINE', data, True ) )
+            text     = "The %s step in %s failed at %s for machine %s" % (e.task, bb.data.getVar("PN", data, True), 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')