add tests for shell builder

Change-Id: I37350e7e813db173e033bd4131e62be77ab9753a
This commit is contained in:
Alexandre Conrad 2014-04-25 14:13:57 -07:00
parent c68249a7f1
commit 2ae9c25cef
3 changed files with 13 additions and 4 deletions

View File

@ -50,12 +50,11 @@ def shell(parser, xml_parent, data):
"""yaml: shell
Execute a shell command.
:Parameter: the shell command to execute
:arg str parameter: the shell command to execute
Example::
Example:
builders:
- shell: "make test"
.. literalinclude:: /../../tests/builders/fixtures/shell.yaml
"""
shell = XML.SubElement(xml_parent, 'hudson.tasks.Shell')

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<hudson.tasks.Shell>
<command>make test</command>
</hudson.tasks.Shell>
</builders>
</project>

View File

@ -0,0 +1,2 @@
builders:
- shell: "make test"