summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-09-22 10:34:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 22:44:52 +0100
commitea373586d34547747eabf9891a16ac2132d9ff92 (patch)
treee1b34ffcaf6a074314243ac779f2b1f60626d461
parent524ddd86c305af1b029c1773affe5cebffc62b28 (diff)
downloadpoky-ea373586d34547747eabf9891a16ac2132d9ff92.tar.gz
bitbake: toaster: store task name in Target objects
Information about a task is not stored in Target objects. This makes it impossible to correctly operate with the builds where task is specified. Storing taks name is an enabler for other fixes in UI and backend related to restarting builds. (Bitbake rev: 0a69a8a18075c976ed8681d9d75529f8c2f48514) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py2
-rw-r--r--bitbake/lib/toaster/orm/models.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
index 718e1441dc..5243a50f9b 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
@@ -118,7 +118,7 @@ class Command(NoArgsCommand):
118 br.save() 118 br.save()
119 # transpose target information 119 # transpose target information
120 for brtarget in br.brtarget_set.all(): 120 for brtarget in br.brtarget_set.all():
121 Target.objects.create(build = br.build, target= brtarget.target) 121 Target.objects.create(build=br.build, target=brtarget.target, task=brtarget.task)
122 # transpose the launch errors in ToasterExceptions 122 # transpose the launch errors in ToasterExceptions
123 for brerror in br.brerror_set.all(): 123 for brerror in br.brerror_set.all():
124 LogMessage.objects.create(build = br.build, level = LogMessage.EXCEPTION, message = brerror.errmsg) 124 LogMessage.objects.create(build = br.build, level = LogMessage.EXCEPTION, message = brerror.errmsg)
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index e4d2e87ae9..883ecf4e50 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -270,7 +270,7 @@ class Project(models.Model):
270 ) 270 )
271 for t in self.projecttarget_set.all(): 271 for t in self.projecttarget_set.all():
272 BRTarget.objects.create(req = br, target = t.target, task = t.task) 272 BRTarget.objects.create(req = br, target = t.target, task = t.task)
273 Target.objects.create(build = br.build, target = t.target) 273 Target.objects.create(build = br.build, target = t.target, task = t.task)
274 274
275 for v in self.projectvariable_set.all(): 275 for v in self.projectvariable_set.all():
276 BRVariable.objects.create(req = br, name = v.name, value = v.value) 276 BRVariable.objects.create(req = br, name = v.name, value = v.value)