[libvirt PATCH v2 28/35] ci: helper: Add a helper to create a local repo clone Pythonic way
Erik Skultety
eskultet at redhat.com
Mon Sep 11 13:43:29 UTC 2023
A proper Python equivalent of 'git clone --local'.
Signed-off-by: Erik Skultety <eskultet at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Erik Skultety <eskultet at redhat.com>:
---
ci/helper | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ci/helper b/ci/helper
index 6aca089db4..392702ae41 100755
--- a/ci/helper
+++ b/ci/helper
@@ -196,6 +196,10 @@ class Application:
if pty.spawn(["make"] + args) != 0:
sys.exit("error: 'make' failed")
+ @staticmethod
+ def _prepare_repo_copy(repo, dest):
+ return repo.clone(dest, local=True)
+
def _lcitool_run(self, args):
output = subprocess.check_output([self._args.lcitool] + args)
return output.decode("utf-8")
--
2.41.0
More information about the libvir-list
mailing list