summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-05-19 13:13:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-29 11:59:45 +0100
commit1b6a50c6b2857c7c21fe4287966f3babca71a142 (patch)
treeb83d06d7e9e1aeb38cacc85a872c803ccf655147 /bitbake/lib/toaster/orm
parent52fe880f9ec46c41d6afdfb275185768c0bb8db9 (diff)
downloadpoky-1b6a50c6b2857c7c21fe4287966f3babca71a142.tar.gz
bitbake: toaster: refactor checksettings command
This patch refactors the checksetting command to prevent early return from the handle function. It also adds a check that marks IN PROGRESS builds at startup time as FAILED. Minor changes to BuildRequest and Build classes ensure useful string representation for the objects. (Bitbake rev: adf67dd79dbf6b585bf8cd54f99c389409b88ecd) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index fb62a55d71..8a9a21eeee 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -267,6 +267,9 @@ class Build(models.Model):
267 def toaster_exceptions(self): 267 def toaster_exceptions(self):
268 return self.logmessage_set.filter(level=LogMessage.EXCEPTION) 268 return self.logmessage_set.filter(level=LogMessage.EXCEPTION)
269 269
270 def __str__(self):
271 return "%d %s %s" % (self.id, self.project, ",".join([t.target for t in self.target_set.all()]))
272
270 273
271# an Artifact is anything that results from a Build, and may be of interest to the user, and is not stored elsewhere 274# an Artifact is anything that results from a Build, and may be of interest to the user, and is not stored elsewhere
272class BuildArtifact(models.Model): 275class BuildArtifact(models.Model):