diff options
-rw-r--r-- | meta/lib/oeqa/runtime/context.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py index d707ab263a..8092dd0bae 100644 --- a/meta/lib/oeqa/runtime/context.py +++ b/meta/lib/oeqa/runtime/context.py | |||
@@ -153,7 +153,11 @@ class OERuntimeTestContextExecutor(OETestContextExecutor): | |||
153 | else: | 153 | else: |
154 | raise RuntimeError("Duplicate controller module found for %s. Layers should create unique controller module names" % module) | 154 | raise RuntimeError("Duplicate controller module found for %s. Layers should create unique controller module names" % module) |
155 | 155 | ||
156 | for p in sys.path: | 156 | # sys.path can contain duplicate paths, but because of the login in |
157 | # add_controller_list this doesn't work and causes testimage to abort. | ||
158 | # Remove duplicates using an intermediate dictionary to ensure this | ||
159 | # doesn't happen. | ||
160 | for p in list(dict.fromkeys(sys.path)): | ||
157 | controllerpath = os.path.join(p, 'oeqa', 'controllers') | 161 | controllerpath = os.path.join(p, 'oeqa', 'controllers') |
158 | if os.path.exists(controllerpath): | 162 | if os.path.exists(controllerpath): |
159 | add_controller_list(controllerpath) | 163 | add_controller_list(controllerpath) |