[RFC PATCH v1 5/7] test/py/tests/test_bootstage.py: add test for InfluxDB report
Jerome Forissier
jerome.forissier at linaro.org
Fri Apr 11 17:29:31 CEST 2025
Add test for CONFIG_BOOTSTAGE_REPORT_INFLUXDB.
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
test/py/tests/test_bootstage.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/test/py/tests/test_bootstage.py b/test/py/tests/test_bootstage.py
index 8d0afe2611b..5619eaf4676 100644
--- a/test/py/tests/test_bootstage.py
+++ b/test/py/tests/test_bootstage.py
@@ -39,6 +39,17 @@ def test_bootstage_report_json(ubman):
assert '"dm_r"' in output
assert '"reset~board_init_f"' in output
+ at pytest.mark.buildconfigspec('bootstage')
+ at pytest.mark.buildconfigspec('cmd_bootstage')
+ at pytest.mark.buildconfigspec('bootstage_report_influxdb')
+def test_bootstage_report_influxdb(ubman):
+ output = ubman.run_command('bootstage report')
+ assert '=== Begin InfluxDB v2 bootstage report ===' in output
+ assert 'u-boot_bootstage_report,' in output
+ assert 'u_boot_version=' in output
+ assert 'dm_r=' in output
+ assert 'reset~board_init_f=' in output
+
@pytest.mark.buildconfigspec('bootstage')
@pytest.mark.buildconfigspec('cmd_bootstage')
@pytest.mark.buildconfigspec('bootstage_stash')
--
2.43.0
More information about the U-Boot
mailing list