Hello,

the job definition is a yaml file so it's easy to parse using any languages.

For instance in python

>>>>
import yaml
with open("jobdefinition.yaml") as f_in:
    data = yaml.load(f_in)
<<<<

You now have a python dictionary that you can parse to grab the information you need.


Regards

2018-05-04 9:30 GMT+02:00 Niu, Deli <deli.niu@intel.com>:

Hi,

 

I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs.

For example:

timeouts:

  job:

    minutes: 30

  action:

    minutes: 30

priority: medium

visibility: public

actions:

- deploy:

    timeout:

      minutes: 30

    to: docker

    os: debian

packages: [python]

 

key word to and os, its value is docker and debian here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava.

Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.  

 

 

Thanks,                    

Deli

 


_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users




--
Rémi Duraffort
LAVA Team