Use testscollected to make xdist happy
This commit is contained in:
parent
e4d361b093
commit
52a5acda92
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue