sanitycheck: count samples in reports
We have not been counting samples in reports. This change lists tests
associated with sample code which in many cases is just verifying output
from the sample and counts as 1 test.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 3d2a821..680f16b 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -1776,6 +1776,9 @@
name = "{}.{}".format(self.id, sub)
self.cases.append(name)
+ if not results:
+ self.cases.append(self.id)
+
def __str__(self):
return self.name