From: Kefu Chai Date: Mon, 12 Apr 2021 05:15:24 +0000 (+0800) Subject: task/internal: split embedded shell into lines X-Git-Tag: 1.2.0~262^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f07ce4b48995659fd9eb49b0d6483f39bc2e78d;p=teuthology.git task/internal: split embedded shell into lines for better readability Signed-off-by: Kefu Chai --- diff --git a/teuthology/task/internal/__init__.py b/teuthology/task/internal/__init__.py index f1e023e8e..e4e461090 100644 --- a/teuthology/task/internal/__init__.py +++ b/teuthology/task/internal/__init__.py @@ -468,7 +468,9 @@ def coredump(ctx, config): 'sudo', 'sysctl', '-w', 'kernel.core_pattern=core', run.Raw('&&'), 'sudo', 'bash', '-c', - f'for f in `find {archive_dir}/coredump -type f`; do file $f | grep -q systemd-sysusers && rm $f ; done', + (f'for f in `find {archive_dir}/coredump -type f`; do ' + 'file $f | grep -q systemd-sysusers && rm $f ; ' + 'done'), run.Raw('&&'), # don't litter the archive dir if there were no cores dumped 'rmdir',