Cache now obeys -q when showing summary for --lf and --ff

Related to #3853
This commit is contained in:
Bruno Oliveira
2018-08-26 18:08:19 -03:00
parent a31967431f
commit 47bb53f5cb
3 changed files with 15 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ class LFPlugin(object):
self._no_failures_behavior = self.config.getoption("last_failed_no_failures")
def pytest_report_collectionfinish(self):
if self.active:
if self.active and self.config.getoption("verbose") >= 0:
if not self._previously_failed_count:
mode = "run {} (no recorded failures)".format(
self._no_failures_behavior