[elbe-devel] [PATCH 3/3] test_xml: pbuilder: don't clutter source directory

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Apr 30 10:20:36 CEST 2024


Instead of writing the generated packages into the users home directory,
put them into the build directory.

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

diff --git a/elbepack/tests/test_xml.py b/elbepack/tests/test_xml.py
index 25dfd0cb02bf..012d8aa00f06 100644
--- a/elbepack/tests/test_xml.py
+++ b/elbepack/tests/test_xml.py
@@ -60,5 +60,6 @@ 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, '--source', build_dir.joinpath(package)],
+        run_elbe(['pbuilder', 'build', '--project', uuid,
+                  '--source', build_dir.joinpath(package), '--output', build_dir.joinpath('out')],
                  check=True)

-- 
2.44.0



More information about the elbe-devel mailing list