summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/tests.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-12-09 19:56:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-14 23:13:07 +0000
commit84daa40bc7600df75d93db358be94cac10452936 (patch)
treed23c913ca773bd04720e0cbfe6a98a199cee3dec /bitbake/lib/toaster/bldcontrol/tests.py
parentc464f34d5bd3aa4119aa3d1591ee7d55afe9b35f (diff)
downloadpoky-84daa40bc7600df75d93db358be94cac10452936.tar.gz
bitbake: toaster: use OneToOneField instead of ForeignKey
Used OneToOneField to reference BuildRequest in BRBitbake model. Fixed django warning: WARNINGS: Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. (Bitbake rev: aaa4319ebbb06facb77b4ba936cf3aa2068ff238) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/tests.py b/bitbake/lib/toaster/bldcontrol/tests.py
index f54cf7f366..141b42acbc 100644
--- a/bitbake/lib/toaster/bldcontrol/tests.py
+++ b/bitbake/lib/toaster/bldcontrol/tests.py
@@ -18,7 +18,7 @@ import subprocess
18import os 18import os
19 19
20# standard poky data hardcoded for testing 20# standard poky data hardcoded for testing
21BITBAKE_LAYERS = [type('bitbake_info', (object,), { "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "", "commit": "HEAD"})] 21BITBAKE_LAYER = type('bitbake_info', (object,), { "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "", "commit": "HEAD"})
22POKY_LAYERS = [ 22POKY_LAYERS = [
23 type('poky_info', (object,), { "name": "meta", "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "meta", "commit": "HEAD"}), 23 type('poky_info', (object,), { "name": "meta", "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "meta", "commit": "HEAD"}),
24 type('poky_info', (object,), { "name": "meta-yocto", "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "meta-yocto", "commit": "HEAD"}), 24 type('poky_info', (object,), { "name": "meta-yocto", "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "meta-yocto", "commit": "HEAD"}),
@@ -53,7 +53,7 @@ class BEControllerTests(object):
53 bc = self._getBEController(obe) 53 bc = self._getBEController(obe)
54 try: 54 try:
55 # setting layers, skip any layer info 55 # setting layers, skip any layer info
56 bc.setLayers(BITBAKE_LAYERS, POKY_LAYERS) 56 bc.setLayers(BITBAKE_LAYER, POKY_LAYERS)
57 except NotImplementedException, e: 57 except NotImplementedException, e:
58 print "Test skipped due to command not implemented yet" 58 print "Test skipped due to command not implemented yet"
59 return True 59 return True
@@ -80,7 +80,7 @@ class BEControllerTests(object):
80 layerSet = False 80 layerSet = False
81 try: 81 try:
82 # setting layers, skip any layer info 82 # setting layers, skip any layer info
83 layerSet = bc.setLayers(BITBAKE_LAYERS, POKY_LAYERS) 83 layerSet = bc.setLayers(BITBAKE_LAYER, POKY_LAYERS)
84 except NotImplementedException: 84 except NotImplementedException:
85 print "Test skipped due to command not implemented yet" 85 print "Test skipped due to command not implemented yet"
86 return True 86 return True