Manual Job Submission¶
1 Select Manual YAML submission option from Job Submit page.

Submit Job page will appear on the screen.

Write a YAML file for test job submission. Select Validate to verify Valid definition.

SAMPLE YAML FILE: Following is the sample TestJob yaml
device_type: beaglebone-black
job_name: bbb-udt
timeouts:
job:
minutes: 600
action:
minutes: 599
priority: medium
visibility: public
actions:
- deploy:
dtb:
url: http://<url for device artifacts>/<path>/beaglebone_black.dtb
kernel:
type: uimage
url: http://<url for device artifacts>/<path>/uImage-4.4-ts-armv7l
nfsrootfs:
compression: gz
url: http://<url for device artifacts>/<path>rootfs.tar.gz
os: oe
to: tftp
- boot:
commands: nfs
method: u-boot
prompts:
- '# '
- test:
definitions:
- from: git
name: ts_clone_repo
path: clone_repo.yaml
repository: ssh://root@<EBF-TASIP>/data/timesys/timesys-test-definitions
- from: git
name: udt_clone_repo
path: clone_repo.yaml
repository: ssh://root@<EBF-TASIP>/data/timesys/user-defined-tests
- from: inline
name: test-job
path: inline/test-job.yaml
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: test-job
run:
steps:
- source /home/env
- cat /home/env
- test_runner -s udt -c testing-a "0"
- test_runner -s udt -c testfile
timeout:
minutes: 600
notify:
criteria:
status: finished
callback:
url: http://127.0.0.1/tests/gen-report
method: POST
content-type: urlencoded
dataset: minimal
priority: medium
timeouts:
action:
minutes: 600
actions:
power-off:
seconds: 60
job:
minutes: 1800
visibility: public
Description
Device_type: It must have an entry in /data/timesys/device-types in form of {device-type}.jinja2
device_type: beaglebone-black
Kernel url: Url of “Kernel file” can be any url(either zImage,uImage or Image format) of the selected device accessible from Zombie machine.
Kernel:
url: http://<url for device artifacts>/<path>/uImage-4.4-ts-armv7l
For example:
url: http://192.168.12.105/lava/BBB/uImage-4.4-ts-armv7l
DTB url: Url of “DTB file” can be any url(dtb format) of the selected device accessible from Zombie machine.
dtb:
url: http://<url for device artifacts>/<path>/beaglebone_black.dtb
For example:
url: http://192.168.12.105/lava/BBB/beaglebone_black.dtb
Rootfs url: Url of “Rootfs url” can be any url (either gz,bz2 or xz format) for selected device accessible from Zombie worker.
Nfsrootfs:
url: http://<url for device artifacts>/<path>/rootfs.tar.gz
For example:
url: http://192.168.12.105/lava/BBB/rootfs.tar.gz
metadata: Metadata must contain format and name details:
repository:
Metadata:
format: Lava-Test Test Definition 1.0
name: test-job
repository: Location of test definitions repository needs to be provided along with EBF-TAS server url and username. This repository contains all the tests that run on DUT’s connected to zombies.
repository: ssh://root@<EBF-TASIP>/data/timesys/timesys-test-definitions
repository: ssh://root@<EBF-TASIP>/data/timesys/user-defined-tests
For example:
repository: ssh://root@192.168.12.81:/data/timesys/timesys-test-definitions
repository: ssh://root@192.168.12.81:/data/timesys/user-defined-tests*
Test Runner*:
One test case with command line argument
- test_runner -s udt -c testing -a "0"%
One test case with default argument
- test_runner -s udt -c testfile
Notify:
notify:
criteria:
status: finished
callback:
url: http://127.0.0.1/tests/gen-report
method: POST
content-type: urlencoded
dataset: minimal
Click on Submit button to submit YAML file or TestJob submission.
