1. Marc Abramowitz
  2. tox_msabramo_whitelistcommands


Marc Abramowitz  committed ee45055

Add a "whitelistcommmands" global config key. Gives a list of commands
which should not be warned about if not present in the virtualenv.

  • Participants
  • Parent commits 73f910d
  • Branches default

Comments (0)

Files changed (2)

File tox/_config.py

View file
         config.toxworkdir = reader.getpath(toxsection, "toxworkdir",
         config.minversion = reader.getdefault(toxsection, "minversion", None)
+        config.whitelistcommands = reader.getdefault(toxsection, "whitelistcommands", "").split("\n")
         # determine indexserver dictionary
         config.indexserver = {'default': IndexServerConfig('default')}

File tox/_venv.py

View file
                 % (name,))
         if p.relto(self.envconfig.envdir):
             return p
-        if venv:
+        if venv and name not in self.session.config.whitelistcommands:
                 "test command found but not installed in testenv\n"
                 "  cmd: %s\n"