1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-04 07:15:18 +02:00

flashrom_tester: Log some cros lsb-release information

os-release does not quite have as much information so use lsb-release.

BUG=b:258289727
BRANCH=None
TEST=flashrom_tester --libflashrom host Lock

Change-Id: If3452ead9e02e0ddeaa0fdf4852d7c17a8ab7650
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69403
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Evan Benn
2022-11-09 16:57:53 +11:00
committed by Edward O'Callaghan
parent 63ae7ae91c
commit d8be2ced58
3 changed files with 15 additions and 0 deletions

View File

@ -134,12 +134,15 @@ pub fn generic<'a, TN: Iterator<Item = &'a str>>(
}
let os_release = sys_info::os_release().unwrap_or("<Unknown OS>".to_string());
let cros_release = cros_sysinfo::release_description()
.unwrap_or("<Unknown or not a ChromeOS release>".to_string());
let system_info = cros_sysinfo::system_info().unwrap_or("<Unknown System>".to_string());
let bios_info = cros_sysinfo::bios_info().unwrap_or("<Unknown BIOS>".to_string());
let meta_data = tester::ReportMetaData {
chip_name,
os_release,
cros_release,
system_info,
bios_info,
};