244a245,254
> def _load(f):
> # Load the pickled status file, sometimes e.g., when a
> # regression is still running the status file might be
> # incomplete.
> try:
> return pickle.load(f)
> except EOFError:
> print >> sys.stderr, 'Could not read file %s' % f.name
> return []
>
246c256
< suites = sum([ pickle.load(f) for f in args.result ], [])
---
> suites = sum([ _load(f) for f in args.result ], [])
279c289,293
< suites = sum([ pickle.load(f) for f in args.result ], [])
---
> try:
> suites = sum([ pickle.load(f) for f in args.result ], [])
> except EOFError:
> print >> sys.stderr, 'Could not read all files'
> sys.exit(2)