sanitycheck: abort if last_sanity.csv not found

When running --only-failed make sure last_sanity.csv exists.

Change-Id: I862529a58f337987c37da83fd5541dd4f42b3391
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-11-29 13:34:53 -05:00
commit d9616b9400

View file

@ -1234,7 +1234,7 @@ class TestSuite:
def get_last_failed(self):
if not os.path.exists(LAST_SANITY):
return []
raise SanityRuntimeError("Couldn't find last sanity run.")
result = []
with open(LAST_SANITY, "r") as fp:
cr = csv.DictReader(fp)