[autotest] Fix lucifer
BUG=chromium:748234
TEST=Run dummy suite locally
Change-Id: Ie4a686cac3d6894f08e73cbb85c281f3b7ac308e
Reviewed-on: https://chromium-review.googlesource.com/764429
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/venv/lucifer/autotest.py b/venv/lucifer/autotest.py
index 602c4f4..08a49d8 100644
--- a/venv/lucifer/autotest.py
+++ b/venv/lucifer/autotest.py
@@ -42,6 +42,9 @@
"""
monkeypatch()
+ # Add chromite's third-party to the import path.
+ import chromite
+
# Needed to set up Django environment variables.
load('frontend.setup_django_environment')
@@ -57,6 +60,10 @@
'django.contrib.sites',
)
+ # drone_utility uses this
+ common = load('scheduler.common')
+ common.autotest_dir = _AUTOTEST_DIR
+
def monkeypatch():
"""Monkeypatch Autotest imports.