]> xenbits.xensource.com Git - libvirt.git/commitdiff
ci: helper: Add an action to run the container workload via lcitool
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 13:21:44 +0000 (15:21 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
Just like with the other CLI sub-commands, add an action to run a
GitLab spec job in a local container via lcitool.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/helper

index fce370f99519280a6c448c74f5c0bac03671e33b..f7b0204ea072c33404c17fcae48f4079d928426e 100755 (executable)
--- a/ci/helper
+++ b/ci/helper
@@ -295,6 +295,10 @@ class Application:
     def _action_shell(self):
         self._make_run(f"ci-shell@{self._args.target}")
 
+    @required_deps("git")
+    def _action_run(self):
+        return self._lcitool_run(self._args.job)
+
     def _action_list_images(self):
         registry_uri = util.get_registry_uri(self._args.namespace,
                                              self._args.gitlab_uri)