[elbe-devel] [PATCH 14/14] elbepack: test multi-step pbuilder builds

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Feb 28 11:39:07 CET 2024


elbe maintains an internal repository to provide intra-project
dependencies. To test this functionality build a package that depends on
another one.

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

diff --git a/elbepack/tests/test_xml.py b/elbepack/tests/test_xml.py
index 78c819dd9b9b..bf6dce04236e 100644
--- a/elbepack/tests/test_xml.py
+++ b/elbepack/tests/test_xml.py
@@ -73,12 +73,13 @@ class TestPbuilder(ElbeTestCase):
             try:
                 system(f'{sys.executable} {elbe_exe} pbuilder create --xmlfile "{self.param}" \
                                                     --writeproject "{prj}"')
-                system(f'cd "{build_dir}"; \
-                         git clone https://github.com/Linutronix/libgpio.git')
-
                 with open(prj, 'r') as f:
                     uuid = f.read()
-                    system(f'cd "{build_dir}/libgpio"; \
+
+                for package in ['libgpio', 'gpiotest']:
+                    system(f'cd "{build_dir}"; \
+                             git clone https://github.com/Linutronix/{package}.git')
+                    system(f'cd "{build_dir}/{package}"; \
                              {sys.executable} {elbe_exe} pbuilder build --project {uuid}')
             except Exception as e:
                 raise e
-- 
2.44.0



More information about the elbe-devel mailing list