mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
ci: helper: Add a helper to create a local repo clone Pythonic way
A proper Python equivalent of 'git clone --local'. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
24319b2cca
commit
4ad2f89244
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user