Hello,
On Fri, 09 Nov 2012 09:40:13 +1300 Michael Hudson-Doyle michael.hudson@linaro.org wrote:
Paul Sokolovsky paul.sokolovsky@linaro.org 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.jso... , 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.
Thanks, that worked for me. Just to clarify: is metadata::name is what used to be test_id in JSON format (re: http://people.linaro.org/~doanac/lava/lava_test_shell/testdefs/lava-test.jso... )?
And thanks for update the docs for new syntax. In that regard, how often are docs on http://lava.readthedocs.org/ updated? For example, http://lava-dispatcher.readthedocs.org/en/latest/ says it's "LAVA Dispatcher 0.6 documentation" which seems to be rather old wrt to latest release-0.21 tag in the bzr repo.
Cheers, mwh