summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/tests.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-11-05 14:47:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-12 17:04:48 +0000
commit78e3a7877b361e9c3ae4865231d97a47bd8220bc (patch)
tree1d8e76e4228ab6f17d2c198dd4f5df1d6f192326 /bitbake/lib/toaster/bldcontrol/tests.py
parent990fb9ed6cc8414e9a0b1baed8990261650af1db (diff)
downloadpoky-78e3a7877b361e9c3ae4865231d97a47bd8220bc.tar.gz
bitbake: toaster: update Release model to pinpoint to specific Branch
We update the release model to pinpoint to specific branch, instead of holding a branch name that needs to be matched. This is needed because we move away from mixing branches on different layer sources. Various minor changes to models file. (Bitbake rev: d58aacc69b1832f99758b941803123329e06082d) 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/tests.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/tests.py b/bitbake/lib/toaster/bldcontrol/tests.py
index 65e337a31b..37d6524c36 100644
--- a/bitbake/lib/toaster/bldcontrol/tests.py
+++ b/bitbake/lib/toaster/bldcontrol/tests.py
@@ -130,7 +130,7 @@ class RunBuildsCommandTests(TestCase):
130 130
131 def test_br_select(self): 131 def test_br_select(self):
132 from orm.models import Project, Release, BitbakeVersion 132 from orm.models import Project, Release, BitbakeVersion
133 p = Project.objects.create_project("test", Release.objects.get_or_create(name = "HEAD", bitbake_version = BitbakeVersion.objects.get_or_create(name="HEAD", branch="HEAD")[0])[0]) 133 p = Project.objects.create_project("test", Release.objects.get_or_create(name = "HEAD", bitbake_version = BitbakeVersion.objects.get_or_create(name="HEAD", branch=Branch.objects.get_or_create(name="HEAD"))[0])[0])
134 obr = BuildRequest.objects.create(state = BuildRequest.REQ_QUEUED, project = p) 134 obr = BuildRequest.objects.create(state = BuildRequest.REQ_QUEUED, project = p)
135 command = Command() 135 command = Command()
136 br = command._selectBuildRequest() 136 br = command._selectBuildRequest()