[elbe-devel] [PATCH 5/9] tests: test_preproc: migrate to run_elbe_subcommand

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


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

diff --git a/elbepack/tests/test_preproc.py b/elbepack/tests/test_preproc.py
index 66644b2b479d..3a8b2b328b20 100644
--- a/elbepack/tests/test_preproc.py
+++ b/elbepack/tests/test_preproc.py
@@ -6,7 +6,7 @@ import pathlib
 
 import pytest
 
-from elbepack.directories import run_elbe
+from elbepack.directories import run_elbe_subcommand
 
 
 def _test_file_path(name):
@@ -23,12 +23,12 @@ def _test_file_path(name):
 ])
 def test_preproc(inp, out, variant, tmp_path):
     actual = tmp_path / (inp + '.out')
-    run_elbe([
+    run_elbe_subcommand([
         'preprocess',
         '-z', '0',
         *(['-v', variant] if variant else []),
         '-o', actual,
         _test_file_path(inp),
-    ], check=True)
+    ])
     with open(_test_file_path(out)) as expected, actual.open() as a:
         assert a.read() == expected.read()

-- 
2.45.2



More information about the elbe-devel mailing list