From: Rishabh Dave Date: Mon, 10 Aug 2020 12:48:05 +0000 (+0530) Subject: vstart_runner: log commands in a more usable form X-Git-Tag: v16.1.0~1210^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36546%2Fhead;p=ceph.git vstart_runner: log commands in a more usable form Currently commands are printed as ['arg1', 'arg2', 'arg3']. Instead, log them as '> arg1 arg2 arg3' so that it's simpler to copy and run them manually. The reason behind prepending '> ' to these logs entries is just to follow the practice followed by teuthology logs. Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 262fe65454a96..0af5b28482148 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -381,7 +381,8 @@ class LocalRemote(object): args[0] )) - log.info("Running {0}".format(args)) + log.info('> ' + + ' '.join([str(a.value) if isinstance(a, Raw) else a for a in args])) if shell: subproc = subprocess.Popen(quote(args),