Skip to content

Commit 47454a7

Browse files
asottilegaborbernat
authored andcommitted
Use pipes.quote when displaying command (#848)
1 parent 4e7d909 commit 47454a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tox/venv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ast
22
import codecs
33
import os
4+
import pipes
45
import re
56
import sys
67

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

0 commit comments

Comments
 (0)