Hi Josue,
On Jul 28, 2016, at 11:05 PM, Albarran, Josue j-albarran@ti.com wrote:
Hi, I ran a simple LTP-DDT test case that produces the following output http://pastebin.ubuntu.com/21280373/. Is there a way to parse this output so that it shows up in results section of the dashboard as a pass. I know you can call lava-test-case from within the script and do the parsing inside the script, but I want to do this for many different test cases. Is there an easier way to do it without changing the test cases? I tried the parsing in the test definition as follows http://pastebin.ubuntu.com/21280894/.
The parse pattern is good, it matches your ltp output. I checked with python re module manually, the output shown as below. So if you don’t see the result in LAVA results, I think it is not the problem of the pattern, might be sth else.
Maybe your are using LAVA V2, I haven’t tried to run ltp with LAVA V2.
import re print re.match("^(?!.+ED)(?P<test_case_id>\w+)\s+(?P<result>PASS|FAIL)\s+\d+", "ETH_XS_FUNC_PING PASS 0").groupdict()
{'test_case_id': 'ETH_XS_FUNC_PING', 'result': 'PASS'}
I will appreciate any help, thanks. Josue _______________________________________________ linaro-validation mailing list linaro-validation@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-validation
-- Thanks, Chase