Commits

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.

Comments (0)

Files changed (2)

         config.toxworkdir = reader.getpath(toxsection, "toxworkdir",
                                            "{toxinidir}/.tox")
         config.minversion = reader.getdefault(toxsection, "minversion", None)
+        config.whitelistcommands = reader.getdefault(toxsection, "whitelistcommands", "").split("\n")
 
         # determine indexserver dictionary
         config.indexserver = {'default': IndexServerConfig('default')}
                 % (name,))
         if p.relto(self.envconfig.envdir):
             return p
-        if venv:
+        if venv and name not in self.session.config.whitelistcommands:
             self.session.report.warning(
                 "test command found but not installed in testenv\n"
                 "  cmd: %s\n"