Commit 757e8f10 by Ned Batchelder

Merge pull request #5826 from edx/ned/no-which-dot-py

No need to use which on a .py file
parents 1b858e54 cce2aa7f
...@@ -48,9 +48,12 @@ class NoseTestSuite(TestSuite): ...@@ -48,9 +48,12 @@ class NoseTestSuite(TestSuite):
# will run the importable coverage rather than the # will run the importable coverage rather than the
# coverage that OS path finds. # coverage that OS path finds.
if not cmd0.endswith('.py'):
cmd0 = "`which {}`".format(cmd0)
cmd = ( cmd = (
"python -m coverage run --rcfile={root}/.coveragerc " "python -m coverage run --rcfile={root}/.coveragerc "
"`which {cmd0}` {cmd_rest}".format( "{cmd0} {cmd_rest}".format(
root=self.root, root=self.root,
cmd0=cmd0, cmd0=cmd0,
cmd_rest=cmd_rest, cmd_rest=cmd_rest,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment