[Concept,10/15] test: Update test_fdt_add_pubkey() to use a separate dir

Message ID 20250819193918.874215-11-sjg@u-boot.org
State New
Headers
Series test: Improvements to make check et al |

Commit Message

Simon Glass Aug. 19, 2025, 7:39 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

This test uses the same directory as the vboot tests, which means that
they conflict when tests are run in parallel.

Add a 'pk-' prefix to avoid this.

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

 test/py/tests/test_vboot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index 06229db41dd..a2545ab3b60 100644
--- a/test/py/tests/test_vboot.py
+++ b/test/py/tests/test_vboot.py
@@ -634,7 +634,7 @@  def test_fdt_add_pubkey(ubman, name, sha_algo, padding, sign_options, algo_arg):
         # Check with fit_check_sign that FIT is signed with key
         utils.run_and_log(ubman, [fit_check_sign, '-f', fit, '-k', dtb])
 
-    tmpdir = os.path.join(ubman.config.result_dir, name) + '/'
+    tmpdir = os.path.join(ubman.config.result_dir, f'pk-{name}') + '/'
     if not os.path.exists(tmpdir):
         os.mkdir(tmpdir)
     datadir = ubman.config.source_dir + '/test/py/tests/vboot/'