From 90736bbe6cbc0e86c7b8dccba56babedfb28c0fd Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 10 Sep 2014 12:19:50 +0200 Subject: [PATCH] documentation: updates to the exec tasks * Quoting is important * Behavior on error Signed-off-by: Loic Dachary --- teuthology/task/exec.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/teuthology/task/exec.py b/teuthology/task/exec.py index f951f77a8a..df66b1a1d8 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 """ -- 2.39.5