Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pipes.quote when displaying command #848

Merged
merged 1 commit into from
Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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