a build should have resultset even though having a status failure
authorVictor Garcia <victor@tuenti.com>
Wed, 4 Jul 2012 17:26:56 +0000 (19:26 +0200)
committerVictor Garcia <victor@tuenti.com>
Wed, 4 Jul 2012 17:26:56 +0000 (19:26 +0200)
jenkinsapi/build.py

index 8beca78a65e994937e04817ac3b7f83a607cce9d..8126d5bb1ff32d9e79d388cd263a646934db776d 100644 (file)
@@ -243,8 +243,6 @@ class Build(JenkinsBase):
         if self.STR_TOTALCOUNT not in self.get_actions():
             raise NoResults( "%s does not have any published results" % str(self) )
         buildstatus = self.get_status()
-        if buildstatus in [ STATUS_FAIL, RESULTSTATUS_FAILURE, STATUS_ABORTED ]:
-            raise FailedNoResults( self.STR_TPL_NOTESTS_ERR % ( str(self), buildstatus ) )
         if not self.get_actions()[self.STR_TOTALCOUNT]:
             raise NoResults( self.STR_TPL_NOTESTS_ERR % ( str(self), buildstatus ) )
         obj_results = ResultSet( result_url, build=self )