summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-07-16 18:48:00 -0400
committerBrian Coca <bcoca@ansible.com>2015-07-16 18:48:00 -0400
commitf146c7680fb7b0f527923264f2105e5788d75081 (patch)
treef547391cfa70a88327031e194906a54cd87066c5 /hacking
parent888bda93c19bfc03db896c3b8e87b1c056798d26 (diff)
parent5489d172de95a94bb92e63090202e519b2204c39 (diff)
downloadansible-f146c7680fb7b0f527923264f2105e5788d75081.tar.gz
Merge pull request #10928 from gimoh/test-module-default-python
Use same interpreter for test-module and module it runs
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/test-module3
1 files changed, 2 insertions, 1 deletions
diff --git a/hacking/test-module b/hacking/test-module
index 953f834aad..be8926f3f6 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -61,7 +61,8 @@ def parse():
help="path to python debugger (e.g. /usr/bin/pdb)")
parser.add_option('-I', '--interpreter', dest='interpreter',
help="path to interpreter to use for this module (e.g. ansible_python_interpreter=/usr/bin/python)",
- metavar='INTERPRETER_TYPE=INTERPRETER_PATH')
+ metavar='INTERPRETER_TYPE=INTERPRETER_PATH',
+ default='python={}'.format(sys.executable))
parser.add_option('-c', '--check', dest='check', action='store_true',
help="run the module in check mode")
options, args = parser.parse_args()