Add build result string to status message when build finishes.
authorTim Potter <tpot@hp.com>
Wed, 9 Apr 2008 01:40:13 +0000 (11:40 +1000)
committerTim Potter <tpot@hp.com>
Wed, 9 Apr 2008 01:40:13 +0000 (11:40 +1000)
gbuildbotclient

index 017c857..a69399b 100755 (executable)
@@ -5,7 +5,7 @@
 import pygtk
 pygtk.require('2.0')
 
-from twisted.internet import gtk2reactor
+from twisted.internet import gtk2reactor, defer
 gtk2reactor.install()
 
 import gnome.ui
@@ -206,11 +206,15 @@ class App(pb.Referenceable):
 
                 # Update build status
 
-                build.callRemote('getNumber').addCallback(
-                    lambda num:
+                dl = defer.DeferredList([build.callRemote('getNumber'),
+                                         build.callRemote('getResults')])
+
+                dl.addCallback(
+                    lambda arg: 
                         model.set_value(iter, 
                                         self.COL_BUILDER_BUILD_STATUS,
-                                        'Finished build %d' % num))
+                                        'Finished build %d: %s' % 
+                                        (arg[0][1], self.Results[arg[1][1]])))
 
                 # Reset progress indicators