[elbe-devel] [PATCH] tests: test_xml: add test for "pbuilder update"
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Aug 21 15:09:26 CEST 2024
Add a simple test for the "pbuilder update" command.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/tests/test_xml.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/elbepack/tests/test_xml.py b/elbepack/tests/test_xml.py
index 8ac9a40eb7b8..b20b94411288 100644
--- a/elbepack/tests/test_xml.py
+++ b/elbepack/tests/test_xml.py
@@ -128,6 +128,10 @@ def test_pbuilder_build(initvm, xml, tmp_path, request):
uuid = prj.read_text()
request.addfinalizer(lambda: _delete_project(uuid))
+ # Not necessary, to test the command.
+ run_elbe_subcommand(['pbuilder', 'update', '--project', uuid])
+ run_elbe_subcommand(['control', 'wait_busy', uuid])
+
assert _prjrepo_list_packages(uuid) == ''
for package in ['libgpio', 'gpiotest']:
---
base-commit: f6a64a263fbfbb5c89fa39e741899bf461a11195
change-id: 20240821-test-pbuilder-update-085bcbc0b6de
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list