sanitycheck: add more logging

This will let us know what is going on, especially on operations that
take some time to complete.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-12-11 07:38:49 -05:00
commit b517b1fc60
2 changed files with 5 additions and 2 deletions

View file

@ -3278,11 +3278,12 @@ class TestSuite(DisablePyTestCollectionMixin):
def xunit_report(self, filename, platform=None, full_report=False, append=False, version="NA"):
total = 0
fails = passes = errors = skips = 0
if platform:
selected = [platform]
logger.debug(f"Writing target report for {platform}...")
logger.info(f"Writing target report for {platform}...")
else:
logger.debug(f"Writing xunit report {filename}...")
logger.info(f"Writing xunit report {filename}...")
selected = self.selected_platforms
if os.path.exists(filename) and append:
@ -3483,6 +3484,7 @@ class TestSuite(DisablePyTestCollectionMixin):
cw.writerow(rowdict)
def json_report(self, filename, platform=None, append=False, version="NA"):
logger.info(f"Writing JSON report {filename}")
rowdict = {}
results_dict = {}
rowdict["test_suite"] = []

View file

@ -1259,6 +1259,7 @@ def main():
# FIXME: remove later
#logger.info(f"failed: {results.failed}, cases: {results.cases}, skipped configurations: {results.skipped_configs}, skipped_cases: {results.skipped_cases}, skipped(runtime): {results.skipped_runtime}, passed: {results.passed}, total: {results.total}, done: {results.done}")
logger.info("Run completed")
if results.failed or (suite.warnings and options.warnings_as_errors):
sys.exit(1)