twister: set both commit and run date in json report

Version is not enough, we need the run date but also the commit date, to
ease reporting and use in dashboards.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-11-05 13:42:26 -04:00
commit 8f5d0a77b0
2 changed files with 15 additions and 1 deletions

View file

@ -237,7 +237,9 @@ class Reporting:
report = {}
report["environment"] = {"os": os.name,
"zephyr_version": version,
"toolchain": self.env.toolchain
"toolchain": self.env.toolchain,
"commit_date": self.env.commit_date,
"run_date": self.env.run_date
}
suites = []