We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following tox.ini:
#!ini [tox] skipsdist = true [testenv] commands = echo {posargs:foo} whitelist_externals = echo
Just using tox outputs foo, but when trying to pass no positional arguments . (a single dot) get passed:
tox
foo
.
% tox -- "" python runtests: PYTHONHASHSEED='456438988' python runtests: commands[0] | echo . . _____________________________________ summary ______________________________________ python: commands succeeded congratulations :)
The text was updated successfully, but these errors were encountered:
Original comment by @hpk42
fix issue240: allow to specify empty argument list without it being rewritten to ".". Thanks Daniel Hahler.
→ <<cset 790d8f87af00>>
Sorry, something went wrong.
Original comment by @blueyed
This gets triggered by the args_are_paths setting, which defaults to true.
args_are_paths
The following patch fixes it:
diff -r 6210dea5abf1 tox/_config.py --- a/tox/_config.py Tue Apr 28 09:10:54 2015 +0200 +++ b/tox/_config.py Tue Apr 28 09:48:58 2015 +0200 @@ -373,9 +373,10 @@ if vc.args_are_paths: args = [] for arg in config.option.args: - origpath = config.invocationcwd.join(arg, abs=True) - if origpath.check(): - arg = vc.changedir.bestrelpath(origpath) + if arg != '': + origpath = config.invocationcwd.join(arg, abs=True) + if origpath.check(): + arg = vc.changedir.bestrelpath(origpath) args.append(arg) reader.addsubstitutions(args) setenv = {}
No branches or pull requests
Given the following tox.ini:
Just using
tox
outputsfoo
, but when trying to pass no positional arguments.
(a single dot) get passed:The text was updated successfully, but these errors were encountered: