Use testscollected to make xdist happy

This commit is contained in:
Dmitry Malinovsky 2016-03-11 14:48:17 +06:00
parent e4d361b093
commit 52a5acda92
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class LFPlugin:
if config.getvalue("cacheshow") or hasattr(config, "slaveinput"):
return
prev_failed = config.cache.get("cache/lastfailed", None) is not None
if (session.items and prev_failed) or self.lastfailed:
if (session.testscollected and prev_failed) or self.lastfailed:
config.cache.set("cache/lastfailed", self.lastfailed)