[elbe-devel] [PATCH 2/3] test_xml: pbuilder: don't change cwd for elbe invocation
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Apr 30 10:20:35 CEST 2024
run_elbe() relies on the python import path to find the elbe executabe.
When the working directory is changed this mechanism breaks.
Instead use --source.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/tests/test_xml.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/tests/test_xml.py b/elbepack/tests/test_xml.py
index b35c4e6a9481..25dfd0cb02bf 100644
--- a/elbepack/tests/test_xml.py
+++ b/elbepack/tests/test_xml.py
@@ -60,5 +60,5 @@ def test_pbuilder_build(xml, tmp_path, request):
for package in ['libgpio', 'gpiotest']:
subprocess.run(['git', 'clone', f'https://github.com/Linutronix/{package}.git'],
check=True, cwd=build_dir)
- run_elbe(['pbuilder', 'build', '--project', uuid],
- check=True, cwd=build_dir.joinpath(package))
+ run_elbe(['pbuilder', 'build', '--project', uuid, '--source', build_dir.joinpath(package)],
+ check=True)
--
2.44.0
More information about the elbe-devel
mailing list