[PATCH 01/15] test: Fix test_pinmux to run in parallel

Simon Glass sjg at chromium.org
Sun Aug 7 01:51:45 CEST 2022


At present test_pinmux_status() assumes that test_pinmux_dev() has run
beforehand. Drop this assumption so we can run the tests in parallel.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 test/py/tests/test_pinmux.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/py/tests/test_pinmux.py b/test/py/tests/test_pinmux.py
index b3ae2ab0240..794994e12d1 100644
--- a/test/py/tests/test_pinmux.py
+++ b/test/py/tests/test_pinmux.py
@@ -68,6 +68,7 @@ def test_pinmux_dev(u_boot_console):
 def test_pinmux_status(u_boot_console):
     """Test that 'pinmux status' displays selected pincontroller's pin
     muxing descriptions."""
+    u_boot_console.run_command('pinmux dev pinctrl')
     output = u_boot_console.run_command('pinmux status')
 
     assert (not 'pinctrl-gpio:' in output)
-- 
2.37.1.559.g78731f0fdb-goog



More information about the U-Boot mailing list