Paul Sokolovsky <[email protected]> writes:
> Hello,
>
> I see that YAML syntax for lava_test_shell has landed in
> linaro-dispatcher trunk, and that old JSON syntax is no longer
> (automagically) supported. I tried to do a straightforward conversion
> of
> http://people.linaro.org/~doanac/lava/lava_test_shell/testdefs/lava-test.json
> ,
> but it throws exceptions trying to parse it. So, can you share examples
> of the new syntax?
Here is something I've been using:
metadata:
format: Lava-Test Test Definition 1.0
name: streamline
run:
steps:
- "iface=$(ip route | awk '{ if ($1 == \"default\") { print($5) } }')"
- "primary_ip=$(ip addr show \"$iface\" | awk '{ if ($1 == \"inet\") {
gsub(\"/.*\", \"\", $2); print($2) } }')"
- "echo \"<LAVA_SIGNAL_IP $primary_ip>\""
- "lava-test-case pystone python -m test.pystone"
parse:
pattern: "(?P<test_case_id>.*-*):\\s+(?P<result>(pass|fail))"
These run steps are a bit silly for you I guess, but the syntax appears
to work.
Cheers,
mwh
_______________________________________________
linaro-validation mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-validation