Skip to content

Commit

Permalink
Use pipes.quote when displaying command (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile authored and gaborbernat committed Jun 19, 2018
1 parent 4e7d909 commit 47454a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tox/venv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ast
import codecs
import os
import pipes
import re
import sys

Expand Down Expand Up @@ -361,7 +362,9 @@ def test(self, redirect=False):
for i, argv in enumerate(self.envconfig.commands):
# have to make strings as _pcall changes argv[0] to a local()
# happens if the same environment is invoked twice
message = "commands[{}] | {}".format(i, " ".join([str(x) for x in argv]))
message = "commands[{}] | {}".format(
i, " ".join([pipes.quote(str(x)) for x in argv])
)
action.setactivity("runtests", message)
# check to see if we need to ignore the return code
# if so, we need to alter the command line arguments
Expand Down

0 comments on commit 47454a7

Please sign in to comment.