On Thu, 21 Feb 2019 at 07:16, tomato seoji@nexell.co.kr wrote:
Hi.
To make customized performance regression test job, I need to change Lava job status as I want.
This isn't supportable. State is an internal element of the scheduling state machine. Health is what gets listed as Complete or Incomplete (or Canceled).
When I run test like kselftest, Lava dispatcher run test program under DUT.
And after finishing lava test job, Job state is always 'Complete'
Job state will be Finished. Health can be Complete or Incomplete or Canceled.
whatever result(pass/fail) each test return.
You are looking for lava-test-raise. If you want the entire job to end with health Incomplete immediately, then you call lava-test-raise with a message from the test shell - for example, as soon as a test case fails. The rest of the test job will not run.
https://master.lavasoftware.org/static/docs/v2/results-intro.html#test-raise
Attached image file is about kselftest result from lava test job.
I want to make lava job status as 'Fail' or 'Canceled' when certain test return fail.
lava-test-raise will set the health to Incomplete but the state must still be Finished but it will also terminate the test job immediately (which is why the health will be Incomplete with the state being Finished)..
I would like to ask your advice.
If you don't want the job to end immediately, then you will need to parse the LAVA results to identify which test cases failed in test jobs which have state Finished and health Complete.