task/internal: split embedded shell into lines
authorKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 05:15:24 +0000 (13:15 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 05:15:26 +0000 (13:15 +0800)
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/task/internal/__init__.py

index f1e023e8eafe3f82e9e7216f3e744001ea7fdde4..e4e46109051b8c235d91a3fd11bb67c3dad5ab5f 100644 (file)
@@ -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',