Add test for CONFIG_BOOTSTAGE_REPORT_INFLUXDB.
Signed-off-by: Jerome Forissier <[email protected]>
---
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
[email protected]('bootstage')
[email protected]('cmd_bootstage')
[email protected]('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