summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorwelchwilmerck <william.welch@merck.com>2017-08-18 09:46:15 -0400
committeransibot <ansibot@users.noreply.github.com>2017-08-18 09:46:15 -0400
commitaf40d042471fff09da3c19b0ebb0ea074b978104 (patch)
tree14d1c90a6eeaa33826f3b79bdacc3a05cae8e93b /hacking
parentbe6c4908a2719e4608757087dd72b568db743655 (diff)
downloadansible-af40d042471fff09da3c19b0ebb0ea074b978104.tar.gz
bring comments and docs up-to-date for invoking hacking/test-module (#20940)
inside test-module, rundebug also needs to know interpreters
Diffstat (limited to 'hacking')
-rw-r--r--hacking/README.md4
-rwxr-xr-xhacking/test-module9
2 files changed, 5 insertions, 8 deletions
diff --git a/hacking/README.md b/hacking/README.md
index d355fbebbe..9ea3df9b49 100644
--- a/hacking/README.md
+++ b/hacking/README.md
@@ -29,7 +29,7 @@ a module outside of the ansible program, locally, on the current machine.
Example:
- $ ./hacking/test-module -m lib/ansible/modules/commands/shell -a "echo hi"
+ $ ./hacking/test-module -m lib/ansible/modules/commands/command.py -a "echo hi"
This is a good way to insert a breakpoint into a module, for instance.
@@ -60,5 +60,3 @@ Authors
-------
'authors' is a simple script that generates a list of everyone who has
contributed code to the ansible repository.
-
-
diff --git a/hacking/test-module b/hacking/test-module
index 89413c8b4b..5709fb1508 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -23,11 +23,10 @@
# modules
#
# example:
-# test-module -m ../library/commands/command -a "/bin/sleep 3"
-# test-module -m ../library/system/service -a "name=httpd ensure=restarted"
-# test-module -m ../library/system/service -a "name=httpd ensure=restarted" --debugger /usr/bin/pdb
-# test-module -m ../library/file/lineinfile -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check
-# test-module -m ../library/commands/command -a "echo hello" -n -o "test_hello"
+# ./hacking/test-module -m lib/ansible/modules/commands/command.py -a "/bin/sleep 3"
+# ./hacking/test-module -m lib/ansible/modules/commands/command.py -a "/bin/sleep 3" --debugger /usr/bin/pdb
+# ./hacking/test-module -m lib/ansible/modules/files/lineinfile.py -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check
+# ./hacking/test-module -m lib/ansible/modules/commands/command.py -a "echo hello" -n -o "test_hello"
import optparse
import os