aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/bldcontrol/management
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-08-22 16:42:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 16:29:36 +0100
commitd57a9124650e5367919668dfccf6aad4962a77f1 (patch)
tree85fc16efe6e54083ca05054b5bf8467793d5ce43 /lib/toaster/bldcontrol/management
parent092ef32e695b43c3337b7116722c4c6eba981396 (diff)
downloadbitbake-d57a9124650e5367919668dfccf6aad4962a77f1.tar.gz
toaster: Fix oe-core fixture
Due to a copy paste error we managed to get some of the wrong information in the oe fixture that provides a suggested default settings for Toaster. This meant it tested correctly when it shouldn't have. Fix: - The use of local bitbake - An incorrect call to realpath which didn't include its parent module. - The field used for the local_dir of an existing openembedded-core Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/bldcontrol/management')
-rw-r--r--lib/toaster/bldcontrol/management/commands/checksettings.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/toaster/bldcontrol/management/commands/checksettings.py b/lib/toaster/bldcontrol/management/commands/checksettings.py
index 0dc55f63a..28b9945e8 100644
--- a/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -84,8 +84,9 @@ class Command(NoArgsCommand):
print("Loading OE-Core configuration")
call_command("loaddata", "oe-core")
if template_conf:
- oe_core_path = os.realpath(template_conf +
- "/../")
+ oe_core_path = os.path.realpath(
+ template_conf +
+ "/../")
else:
print("TEMPLATECONF not found. You may have to"
" manually configure layer paths")
@@ -94,8 +95,9 @@ class Command(NoArgsCommand):
"layer: ")
# Update the layer instances of openemebedded-core
for layer in Layer.objects.filter(
- name="openembedded-core"):
- layer.local_source_dir = oe_core_path
+ name="openembedded-core",
+ local_source_dir="OE-CORE-LAYER-DIR"):
+ layer.local_path = oe_core_path
layer.save()
# Import the custom fixture if it's present