diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-07-21 14:43:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-25 09:23:05 +0100 |
commit | 61a47cbc92c856690cb0e8da7102b2e669eaee0a (patch) | |
tree | f68e09faf1ab3c7447336a877c30a8365b986198 /lib/toaster/bldcontrol/management | |
parent | 48c09c62eb979d840132e58144f0d81ffee675b1 (diff) | |
download | bitbake-61a47cbc92c856690cb0e8da7102b2e669eaee0a.tar.gz |
toaster: tests: Remove references to LayerSource model
Remove and replace layersource model references in the tests and test
data. Remove the orm/test as this only tested LayerSource interactions
which have now been removed.
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/loadconf.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/toaster/bldcontrol/management/commands/loadconf.py b/lib/toaster/bldcontrol/management/commands/loadconf.py index 6f08f1db8..1f57fc16f 100644 --- a/lib/toaster/bldcontrol/management/commands/loadconf.py +++ b/lib/toaster/bldcontrol/management/commands/loadconf.py @@ -9,24 +9,6 @@ from .checksettings import DN import logging logger = logging.getLogger("toaster") -def _reduce_canon_path(path): - components = [] - for c in path.split("/"): - if c == "..": - del components[-1] - elif c == ".": - pass - else: - components.append(c) - if len(components) < 2: - components.append('') - return "/".join(components) - -def _get_id_for_sourcetype(s): - for i in LayerSource.SOURCE_TYPE: - if s == i[1]: - return i[0] - raise Exception("Could not find definition for sourcetype '%s'. Valid source types are %s" % (str(s), ', '.join(map(lambda x: "'%s'" % x[1], LayerSource.SOURCE_TYPE )))) class Command(BaseCommand): help = "Loads a toasterconf.json file in the database" |