Skip to content
Snippets Groups Projects
Sietze van Buuren's avatar
Sietze Van Buuren. authored
* Since LAVA v2018.2 the `SchedulerAPI` method `job_status` has been
  deprecated. It was removed completely in LAVA v2020.02.
* Now, it is recommended to use the methods `job_state` or
  `job_health`.
* This commits introduces a fix, so that the new method `job_state`
  is used instead of the (removed) `job_status` method.

Signed-off-by: default avatarSietze van Buuren <Sietze.vanBuuren@de.bosch.com>
9be8db8a

LAVA QA Tool

Command line tool for LAVA quality assurance tasks.

Install software from upstream code

git clone https://gitlab.collabora.com/collabora/lqa.git
cd lqa/
sudo python setup.py install

Usage example

LAVA is just an automated framework to push in jobs, then those jobs run the useful test case definitions.

The examples/lqa.yaml file is provided as an example that the developer must update before lqa usage and place it into the directory $HOME/.config/.

Extra examples on jobs are also provided in the examples directory.

Now for the real usage, tests can be run in a lot against certain image:

lqa --log-file lqa-sin-validator.log \
    submit \
    -g examples/profiles.yaml \
    --all-profiles \
    -t image_date:150305-004801 \
    examples/templates/*.json

The previous example will run all jobs from examples/templates/*.json, using the configuration file $HOME/.config/lqa.yaml, for all profiles configured in the file examples/profiles.yaml. The image to be used will be the one with timestamp 150305-004801 and actions will be logged at lqa-sin-validator.log.

If the lqa.yaml configuration file is located in another directory, the --config or -c options can be used like:

lqa --config examples/lqa.yaml \
    --log-file lqa-sin-validator.log \
    submit \
    -g examples/profiles.yaml \
    --all-profiles \
    -t image_date:150305-004801 \
    examples/templates/*.json

The previous example will run all jobs in examples/templates/*.json, using the configuration file examples/lqa.yaml, for all profiles configured in the file examples/profiles.yaml. The image to be used will be the one with timestamp 150305-004801 and actions will be logged at lqa-sin-validator.log.