From: Victor Garcia Date: Wed, 4 Jul 2012 17:26:56 +0000 (+0200) Subject: a build should have resultset even though having a status failure X-Git-Tag: v0.2.23~279^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbbedcd1400b6ac0ef3fc1cd9b5787d6d131e25f;p=tools%2Fpython-jenkinsapi.git a build should have resultset even though having a status failure --- diff --git a/jenkinsapi/build.py b/jenkinsapi/build.py index 8beca78..8126d5b 100644 --- a/jenkinsapi/build.py +++ b/jenkinsapi/build.py @@ -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 )