=== modified file 'lava_dispatcher/actions/lava-test.py'
@@ -21,11 +21,12 @@
# with this program; if not, see <http://www.gnu.org/licenses>.
from datetime import datetime
+import logging
import traceback
-import logging
from lava_dispatcher.actions import BaseAction
from lava_dispatcher.client import OperationFailed, CriticalError
+from lava_dispatcher.config import get_config
def _setup_testrootfs(client):
#Make sure in master image
@@ -62,9 +63,12 @@
cmd = ('chroot /mnt/root apt-get -y install bzr usbutils python-apt '
'python-setuptools python-simplejson lsb-release')
client.run_cmd_master(cmd, timeout=2400)
- client.run_cmd_master('chroot /mnt/root bzr branch lp:lava-test')
- client.run_cmd_master(
- 'chroot /mnt/root sh -c "cd lava-test && python setup.py install"')
+ client.run_cmd_master("chroot /mnt/root apt-get -y install python-pip")
+
+ dispatcher_config = get_config("lava-dispatcher")
+ lava_test_url = dispatcher_config.get("LAVA_TEST_URL")
+ logging.debug("Installing %s with pip" % lava_test_url)
+ client.run_cmd_master('chroot /mnt/root pip install -e ' + lava_test_url)
#Test if lava-test installed
try:
@@ -115,7 +119,6 @@
if install_python:
for module in install_python:
- client.run_cmd_master("chroot /mnt/root apt-get -y install python-pip")
client.run_cmd_master("chroot /mnt/root pip install -e " + module)
if register:
=== modified file 'lava_dispatcher/default-config/lava-dispatcher/lava-dispatcher.conf'
@@ -24,3 +24,6 @@
# 40 = ERROR
# Messages with a lower number than LOGGING_LEVEL will be suppressed
LOGGING_LEVEL = 20
+
+# The url point to the version of lava-test to be install with pip
+LAVA_TEST_URL = bzr+http://bazaar.launchpad.net/~linaro-validation/lava-test/trunk/#egg=lava-test