From e337882189bc2f4489b75377c051afd43fdac200 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 22 Jan 2020 00:31:25 -0500 Subject: [PATCH] sanitycheck: fix reporting of timeouts Timeouts were not reported correctly in the XML file as failures, causing some confusion in the shippable results. Signed-off-by: Anas Nashif --- scripts/sanitycheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 51daa740853..6f8fbe12065 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -3070,7 +3070,7 @@ class TestSuite: for instance in self.instances.values(): handler_time = instance.metrics.get('handler_time', 0) duration += handler_time - if instance.status == "failed": + if instance.status in ["failed", "timeout"]: if instance.reason in ['build_error', 'handler_crash']: errors += 1 else: @@ -3118,7 +3118,7 @@ class TestSuite: name="%s" % (instance.testcase.name), time="%f" % handler_time) - if instance.status == "failed": + if instance.status in ["failed", "timeout"]: failure = ET.SubElement( eleTestcase, 'failure',