JSON submissions do not support this. Test actions are more typically described inside a LAVA Test Shell Definition where there is metadata per definition and a name for each lava-test-case. lava-command is designed for situations where a script needs to run on the dispatcher to get the device into a suitable mode. As such, there is little benefit in having more than one sequential block, the expectation is that the command list would contain all commands required at that point. lava_command is not a test action, it is a dispatcher action, so does not support the same type of metadata.
On 21 March 2016 at 14:18, Marc Titinger mtitinger@baylibre.com wrote:
Hi Neil and all,
how do I add per-action comments or meta data so that I can parse them from the result bundle:
the following for instance will pass the schema validation, but the result bundle will degenerate into keeping only the last "comment" metadata entry, while I'd like a per-action metadata entry.
{ "command": "lava_command_run", "metadata": { "comment": "comment1" }, "parameters": { "commands": [ "uname -a" ] } }, { "command": "lava_command_run", "metadata": { "comment": "comment2" }, "parameters": { "commands": [ "ls -al" ] } },
The result bundle will contain the same metadata for each lava-command:
"attributes": { "comment": "comment2", <=== same value "image.type": "kernel-ci",
.... snip ...
"logging_level": "DEBUG", "device.tree": "omap4-panda-es.dtb" }, "test_id": "lava-command"
IOW, how do I assign a brief description to an action ?
Thanks and regards, Marc.
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users