]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
documentation: updates to the exec tasks 327/head
authorLoic Dachary <loic-201408@dachary.org>
Wed, 10 Sep 2014 10:19:50 +0000 (12:19 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Wed, 10 Sep 2014 10:19:50 +0000 (12:19 +0200)
* Quoting is important
* Behavior on error

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
teuthology/task/exec.py

index f951f77a8a379a2e7c798484d97c6a2e12562155..df66b1a1d87c396238546ddcf7a9aec3a5e8deff 100644 (file)
@@ -16,10 +16,17 @@ def task(ctx, config):
         - kclient: [client.a]
         - exec:
             client.a:
-              - echo 'module libceph +p' > /sys/kernel/debug/dynamic_debug/control
-              - echo 'module ceph +p' > /sys/kernel/debug/dynamic_debug/control
+              - "echo 'module libceph +p' > /sys/kernel/debug/dynamic_debug/control"
+              - "echo 'module ceph +p' > /sys/kernel/debug/dynamic_debug/control"
         - interactive:
 
+    It stops and fails with the first command that does not return on success. It means
+    that if the first command fails, the second won't run at all.
+
+    To avoid confusion it is recommended to explicitly enclose the commands in 
+    double quotes. For instance if the command is false (without double quotes) it will
+    be interpreted as a boolean by the YAML parser.
+
     :param ctx: Context
     :param config: Configuration
     """