Merge lp:~stylesen/lava-dispatcher/testdef-from-repo-doc into lp:lava-dispatcher

Proposed by Senthil Kumaran S
Status: Merged
Merged at revision: 465
Proposed branch: lp:~stylesen/lava-dispatcher/testdef-from-repo-doc
Merge into: lp:lava-dispatcher
Diff against target: 78 lines (+52/-9)
1 file modified
doc/jobfile.rst (+52/-9)
To merge this branch: bzr merge lp:~stylesen/lava-dispatcher/testdef-from-repo-doc
Reviewer Review Type Date Requested Status
Dave Pigott Approve
Review via email: mp+136125@code.launchpad.net

Description of the change

Added documentation for explaining the new job definition format for defining lava test shell action to get test definitions from repository.

To post a comment you must log in.
Revision history for this message
Dave Pigott (dpigott) wrote :

+1

review: Approve
Revision history for this message
Antonio Terceiro (terceiro) wrote :

Small nitpick ...

On Mon, Nov 26, 2012 at 10:17:30AM -0000, Senthil Kumaran S wrote:
> -You can put multiple test definition URLs in the "testdef_urls" section. These
> -will be run sequentially without reboot. Alternatively, you can specify each
> -URL in a separate ``lava_test_shell`` action which will allow for a reboot
> -between each test.
> -
> -.. seealso:: The test definition format for ``lava_test_shell`` actions here_
> -
> -.. _here: lava_test_shell.html
> +You can put multiple test definition URLs in "testdef_urls"
> +section. The "testdef_urls" section takes a python list of strings
> +which are URLs. These will be run sequentially without
> +reboot. Alternatively, you can specify each URL in a separate
> +``lava_test_shell`` action which will allow for a reboot between each test.

s/python list of strings/JSON list of strings/ ??

(the syntax for a list of strings is probably the same in Python and
JSON, but still)

--
Antonio Terceiro
Software Engineer - Linaro
http://www.linaro.org

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Antonio Terceiro <email address hidden> writes:

> Small nitpick ...
>
> On Mon, Nov 26, 2012 at 10:17:30AM -0000, Senthil Kumaran S wrote:
>> -You can put multiple test definition URLs in the "testdef_urls" section. These
>> -will be run sequentially without reboot. Alternatively, you can specify each
>> -URL in a separate ``lava_test_shell`` action which will allow for a reboot
>> -between each test.
>> -
>> -.. seealso:: The test definition format for ``lava_test_shell`` actions here_
>> -
>> -.. _here: lava_test_shell.html
>> +You can put multiple test definition URLs in "testdef_urls"
>> +section. The "testdef_urls" section takes a python list of strings
>> +which are URLs. These will be run sequentially without
>> +reboot. Alternatively, you can specify each URL in a separate
>> +``lava_test_shell`` action which will allow for a reboot between each test.
>
> s/python list of strings/JSON list of strings/ ??
>
> (the syntax for a list of strings is probably the same in Python and
> JSON, but still)

I would just say "list" -- the syntax is implied, I think.

Cheers,
mwh

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

Hi Antonio,

On Tuesday 27 November 2012 12:08 AM, Michael Hudson-Doyle wrote:
> I would just say "list" -- the syntax is implied, I think.

Thanks for pointing it out. I just made the change in revision 469 @
trunk. I took Michael's suggestion as follows:

"The "testdef_urls" section takes a list of strings which are URLs."

Thank You.
--
Senthil Kumaran S
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/jobfile.rst'
2--- doc/jobfile.rst 2012-10-10 19:29:04 +0000
3+++ doc/jobfile.rst 2012-11-26 10:16:04 +0000
4@@ -68,7 +68,7 @@
5 Using LAVA Test Shell
6 =====================
7 The ``lava_test_shell`` action provides a way to employ a more black-box style
8-testing appoach with the target device. The action only requires that a
9+testing approach with the target device. The action only requires that a
10 deploy action (deploy_linaro_image/deploy_linaro_android_image) has been
11 executed. Its format is::
12
13@@ -82,14 +82,57 @@
14 }
15 }
16
17-You can put multiple test definition URLs in the "testdef_urls" section. These
18-will be run sequentially without reboot. Alternatively, you can specify each
19-URL in a separate ``lava_test_shell`` action which will allow for a reboot
20-between each test.
21-
22-.. seealso:: The test definition format for ``lava_test_shell`` actions here_
23-
24-.. _here: lava_test_shell.html
25+You can put multiple test definition URLs in "testdef_urls"
26+section. The "testdef_urls" section takes a python list of strings
27+which are URLs. These will be run sequentially without
28+reboot. Alternatively, you can specify each URL in a separate
29+``lava_test_shell`` action which will allow for a reboot between each test.
30+
31+If your test definitions are available in a git repository then
32+``lava_test_shell`` can automatically pull the test definition from
33+the git repository and execute it. The format is::
34+
35+ {
36+ "command": "lava_test_shell",
37+ "parameters": {
38+ "testdef_repos": [
39+ {"git-repo": "git://git.linaro.org/people/stylesen/sampletestdefs.git",
40+ "revision": "91df22796f904677c0fe5df787fc04234bf97691",
41+ "testdef": "testdef.yaml"
42+ }],
43+ "timeout": 1800
44+ }
45+ }
46+
47+Alternatively, if your test definitions are available in a bzr repository then
48+``lava_test_shell`` can automatically pull the test definition from
49+the bzr repository and execute it. The format is::
50+
51+ {
52+ "command": "lava_test_shell",
53+ "parameters": {
54+ "testdef_repos": [
55+ {"bzr-repo": "lp:~stylesen/lava-dispatcher/sampletestdefs-bzr",
56+ "revision": "1",
57+ "testdef": "testdef.yaml"
58+ }],
59+ "timeout": 1800
60+ }
61+ },
62+
63+In both the above formats "revision" and "testdef" are optional. If
64+"revision" is not specified then the latest revision in the repository is
65+cloned. If there is no "testdef" specified, then inside the cloned
66+directory of the repository a file with name "lavatest.yaml" is looked
67+up which is the default name for test definitions. The "testdef"
68+parameter could be used in order to override the default name for test
69+definition file.
70+
71+.. seealso:: The test definition format for ``lava_test_shell``
72+ actions `here <lava_test_shell.html>`_
73+
74+ Developer documentation for ``lava_test_shell`` is
75+ available `here <http://bazaar.launchpad.net/~linaro-validation/lava-dispatcher/trunk/view/head:/lava_dispatcher/actions/lava_test_shell.py#L23>`_
76
77 Adding Meta-Data
78 ================

Subscribers

People subscribed via source and target branches