diff mbox series

[RFC,v1,5/7] test/py/tests/test_bootstage.py: add test for InfluxDB report

Message ID 20250411153040.1772000-6-jerome.forissier@linaro.org
State New
Headers show
Series Bootstage reports for CI | expand

Commit Message

Jerome Forissier April 11, 2025, 3:29 p.m. UTC
Add test for CONFIG_BOOTSTAGE_REPORT_INFLUXDB.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
---

 test/py/tests/test_bootstage.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

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
 
+@pytest.mark.buildconfigspec('bootstage')
+@pytest.mark.buildconfigspec('cmd_bootstage')
+@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')