[elbe-devel] [PATCH 6/9] tests: test_validate: migrate to run_elbe_subcommand

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Jul 25 11:47:16 CEST 2024


Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/tests/test_validate.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/elbepack/tests/test_validate.py b/elbepack/tests/test_validate.py
index 5c0885c3e294..9a0260118c2e 100644
--- a/elbepack/tests/test_validate.py
+++ b/elbepack/tests/test_validate.py
@@ -7,7 +7,7 @@ import os
 
 import pytest
 
-from elbepack.directories import run_elbe
+from elbepack.directories import run_elbe_subcommand
 
 
 def _test_cases():
@@ -31,5 +31,5 @@ def _examples():
 @pytest.mark.parametrize('f', itertools.chain(_test_cases(), _examples()))
 def test_validate(f, tmp_path):
     p = tmp_path / 'preprocessed.xml'
-    run_elbe(['preprocess', '-o', p, f], check=True)
-    run_elbe(['validate', p], check=True)
+    run_elbe_subcommand(['preprocess', '-o', p, f])
+    run_elbe_subcommand(['validate', p])

-- 
2.45.2



More information about the elbe-devel mailing list