diff options
author | holger krekel <holger@merlinux.eu> | 2015-06-23 13:49:40 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2015-06-23 13:49:40 +0200 |
commit | 65b14b95087d2b0721fcd9e08fe6f2bc39258356 (patch) | |
tree | 45f0f27bd0cde11773134f628b6c018cd1d41a32 /tox/session.py | |
parent | c2befbb6b0d7dbb7c58c09d47acc7b02a7729e7f (diff) | |
download | tox-65b14b95087d2b0721fcd9e08fe6f2bc39258356.tar.gz |
some fixes for detox, preparing 2.1.12.1.1
Diffstat (limited to 'tox/session.py')
-rw-r--r-- | tox/session.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tox/session.py b/tox/session.py index b00465b..fcdcf6c 100644 --- a/tox/session.py +++ b/tox/session.py @@ -421,6 +421,9 @@ class Session: path.ensure(dir=1) def setupenv(self, venv): + if not venv.matching_platform(): + venv.status = "platform mismatch" + return # we simply omit non-matching platforms action = self.newaction(venv, "getenv", venv.envconfig.envdir) with action: venv.status = 0 @@ -518,9 +521,6 @@ class Session: if self.config.option.sdistonly: return for venv in self.venvlist: - if not venv.matching_platform(): - venv.status = "platform mismatch" - continue # we simply omit non-matching platforms if self.setupenv(venv): if venv.envconfig.usedevelop: self.developpkg(venv, self.config.setupdir) @@ -569,7 +569,7 @@ class Session: self.report.error(msg) elif status == "platform mismatch": msg = " %s: %s" % (venv.envconfig.envname, str(status)) - self.report.verbosity1(msg) + self.report.skip(msg) elif status and status != "skipped tests": msg = " %s: %s" % (venv.envconfig.envname, str(status)) self.report.error(msg) |