[Fuego] [PATCH 09/29] ftc: put double quotes when using wildcards

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Fri Jul 21 08:02:00 UTC 2017


The double quotes are to avoid the shell filling the
wildcards.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/scripts/ftc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index 8d532f7..095ac06 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -97,8 +97,8 @@ command_help = {
     """Usage: ftc rm-jobs <target>.<testspec>.<testtype>.<testcase>
   Use list-jobs to see the existing jobs. A wildcard can be used to
   specify which jobs to remove (just make sure you have 4 words):
-    Example: ftc rm-jobs docker.testplan_docker.*.*
-    Example: ftc rm-jobs docker.*.F*.*stress
+    Example: ftc rm-jobs "docker.testplan_docker.*.*"
+    Example: ftc rm-jobs "docker.*.F*.*stress"
   Multiple combinations of the <target>.<testspec>.<testtype>.<testcase>
   pattern can be passed as well.
 
@@ -216,8 +216,8 @@ Build the indicated job(s).
 
   Use list-jobs to see the existing jobs. A wildcard can be used to
   specify which jobs to build (just make sure you have 4 words):
-    Example: ftc build-jobs docker.testplan_docker.*.*
-    Example: ftc build-jobs docker.*.F*.*stress
+    Example: ftc build-jobs "docker.testplan_docker.*.*"
+    Example: ftc build-jobs "docker.*.F*.*stress"
   Multiple job_name patterns can be specified."""),
 
 "add-view":("Add view to Jenkins dashboard",
@@ -225,7 +225,7 @@ Build the indicated job(s).
 Add the indicated view, using the specified job specification.
 If the job specification starts with "=", it is a comma-separated
 list of job names.  If not, then it is used as a regular expression.
-   Example: ftc add-view batch .*.batch
+   Example: ftc add-view batch ".*.batch"
    Example: ftc add-view network =docker.default.Functional.ipv6connect,docker.default.Functional.netperf
 """),
 
-- 
2.7.4




More information about the Fuego mailing list