Hi Neil,

Thanks very much to your quickly and warmly answer.

One more question:

LAVA copy all the test scripts defined in the YAML to the DUT at the specified directory, then the job will be executed on the DUT. And if I want to test one android device, but almost all the android images don't support python interpreter, so it's impossible to write case with python, in most cases we should use shell to run the test case. But sometimes we want to use Appium/Robotium to test the android image, and use LAVA to deploy the image, analyze and record the test results, so LAVA is unavailable in such conditions. Do you have any advice to integrate these tools in LAVA or will LAVA support such conditions in the future.

Best Regards.

------------------ 原始邮件 ------------------
发件人: "Neil Williams";<neil.williams@linaro.org>;
发送时间: 2016年1月29日(星期五) 凌晨3:27
收件人: "wangbo"<wangbo.hfut@qq.com>;
抄送: "Lava Users Mailman list"<lava-users@lists.linaro.org>;
主题: Re: Forward of moderated message

> From: wangbo <wangbo.hfut@qq.com>
> Date: Thu, 28 Jan 2016 20:39:25 +0800
> Subject: LAVA uninstall and upgrade, build method from the source code
> Hi all,
>
> I installed LAVA on Ubuntu 14.04 in our lab, but later we plan to upgrade the system to Ubuntu 15.10, so what should I do now?

I'm afraid the only long term option is to migrate to Debian Jessie,
possibly using a VM, and then using jessie-backports. It is uncertain
whether it will be possible to support LAVA on the upcoming Ubuntu
Xenial 16.04LTS and support for Trusty has already been frozen. There
have been problems upgrading from 14.04 - these issues have already
been discussed on the lists.

https://lists.linaro.org/pipermail/lava-announce/2015-November/000003.html

The next upload of LAVA should be able to migrate into Ubuntu ahead of
the cut off for the Xenial release but that is outside our control. It
is also unknown whether it will be possible to maintain a system based
on Xenial - the LAVA software team will be unable to maintain such
support and users would need to be proactive in fixing problems that
may arise.

> Because I have already installed LAVA, so should I uninstall it firstly, and then use apt-get install to reinstall LAVA? But I can't find more information about this in the website, can you give me some advice, thanks very much.

https://staging.validation.linaro.org/static/docs/installing_on_debian.html#debian-installation

The main problems will be with the database, so building in any way
will have the same difficulties. Trusty is, sadly, a dead end at the
moment.

> And, how to install LAVA from the source code?

Not supported - installation is only supported as Debian packages.
LAVA is much more than a pip install / virtualenv can ever manage.

> LAVA includes different parts, like lava-server, lava-dispatcher, lava-tool, etc. So which one should be installed firstly? By the way in the Git, for example "https://git.linaro.org/lava/lava-server.git/tree", there is no document about the install method. Now, I will modify some code to meet our demands in our lab, and then replace the corresponding file. We plan to manage the code with Git too. So if we know the install method from the source code, it will be better to build the code.

There is no documentation for installing from git because the
installation method has moved to using packages. We abandoned the old
install from git methods a long time ago due to interminable bugs and
insolvable dilemmas.

During the migration to the new dispatcher, things are too complex to
support more than Debian Jessie (and the next Debian release,
Stretch). Once the migration is complete (in 2017), the advantages of
the new design should also make it easier to support other operating
systems. We are a long way from that at the moment.

--

Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/