Merge "add tests for shell builder"
This commit is contained in:
commit
2b2037d878
@ -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')
|
||||
|
8
tests/builders/fixtures/shell.xml
Normal file
8
tests/builders/fixtures/shell.xml
Normal 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>
|
2
tests/builders/fixtures/shell.yaml
Normal file
2
tests/builders/fixtures/shell.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
builders:
|
||||
- shell: "make test"
|
Loading…
Reference in New Issue
Block a user