diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-09 19:56:38 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-14 23:13:07 +0000 |
| commit | 84daa40bc7600df75d93db358be94cac10452936 (patch) | |
| tree | d23c913ca773bd04720e0cbfe6a98a199cee3dec /bitbake/lib/toaster/bldcontrol/tests.py | |
| parent | c464f34d5bd3aa4119aa3d1591ee7d55afe9b35f (diff) | |
| download | poky-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.py | 6 |
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 | |||
| 18 | import os | 18 | import os |
| 19 | 19 | ||
| 20 | # standard poky data hardcoded for testing | 20 | # standard poky data hardcoded for testing |
| 21 | BITBAKE_LAYERS = [type('bitbake_info', (object,), { "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "", "commit": "HEAD"})] | 21 | BITBAKE_LAYER = type('bitbake_info', (object,), { "giturl": "git://git.yoctoproject.org/poky.git", "dirpath": "", "commit": "HEAD"}) |
| 22 | POKY_LAYERS = [ | 22 | POKY_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 |
