Skip to content

Commit

Permalink
Fix hacking/test-module to allow running modules with pdb (#23339)
Browse files Browse the repository at this point in the history
* Fix hacking/test-module to allow running modules with pdb

* add emacs autosave files to gitignore

(cherry picked from commit 56d33a2)
  • Loading branch information
mikedlr authored and abadger committed Jun 28, 2017
1 parent e943505 commit 184903c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
*.py[co]
build
AUTHORS.TXT
# Emacs backup files...
# Emacs backup and autosave files...
*~
.\#*
\#*
# RPM stuff...
MANIFEST
dist
Expand Down
6 changes: 3 additions & 3 deletions hacking/test-module
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ def runtest(modfile, argspath, modname, module_style, interpreters):
print(jsonify(results,format=True))


def rundebug(debugger, modfile, argspath, modname, module_style):
def rundebug(debugger, modfile, argspath, modname, module_style, interpreters):
"""Run interactively with console debugger."""

if module_style == 'ansiballz':
modfile, argspath = ansiballz_setup(modfile, modname)
modfile, argspath = ansiballz_setup(modfile, modname, interpreters)

if argspath is not None:
subprocess.call("%s %s %s" % (debugger, modfile, argspath), shell=True)
Expand All @@ -257,7 +257,7 @@ def main():

if options.execute:
if options.debugger:
rundebug(options.debugger, modfile, argspath, modname, module_style)
rundebug(options.debugger, modfile, argspath, modname, module_style, interpreters)
else:
runtest(modfile, argspath, modname, module_style, interpreters)

Expand Down

0 comments on commit 184903c

Please sign in to comment.