[libvirt PATCH v2 25/35] ci: helper: Add --lcitool-path CLI option

Erik Skultety posted 35 patches 1 year, 3 months ago
[libvirt PATCH v2 25/35] ci: helper: Add --lcitool-path CLI option
Posted by Erik Skultety 1 year, 3 months ago
We'll soon be relying solely on lcitool so we need to be able to run it
from a user-provided location if it's not installed in a known
location.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Erik Skultety <eskultet@redhat.com>:
---
 ci/helper | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ci/helper b/ci/helper
index d3de6d96cb..75552774f6 100755
--- a/ci/helper
+++ b/ci/helper
@@ -43,6 +43,12 @@ class Parser:
             default="latest",
             help="use container images with non-default tags",
         )
+        containerparser.add_argument(
+            "--lcitool-path",
+            dest="lcitool",
+            default="lcitool",
+            help="path to lcitool (default: $PATH)",
+        )
 
         # Options that are common to all actions that call the
         # project's build system
-- 
2.41.0