From: Loic Dachary Date: Wed, 10 Sep 2014 10:19:50 +0000 (+0200) Subject: documentation: updates to the exec tasks X-Git-Tag: 1.1.0~1178^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90736bbe6cbc0e86c7b8dccba56babedfb28c0fd;p=teuthology.git documentation: updates to the exec tasks * Quoting is important * Behavior on error Signed-off-by: Loic Dachary --- diff --git a/teuthology/task/exec.py b/teuthology/task/exec.py index f951f77a8..df66b1a1d 100644 --- a/teuthology/task/exec.py +++ b/teuthology/task/exec.py @@ -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 """