summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/models.py
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/bldcontrol/models.py
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/bldcontrol/models.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index 02cfaf7086..b789446fa1 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -125,6 +125,9 @@ class BuildRequest(models.Model):
125 def get_machine(self): 125 def get_machine(self):
126 return self.brvariable_set.get(name="MACHINE").value 126 return self.brvariable_set.get(name="MACHINE").value
127 127
128 def __str__(self):
129 return "%s %s" % (self.project, self.get_state_display())
130
128# These tables specify the settings for running an actual build. 131# These tables specify the settings for running an actual build.
129# They MUST be kept in sync with the tables in orm.models.Project* 132# They MUST be kept in sync with the tables in orm.models.Project*
130 133