From 464ec3dbdc8786a3242bb357db35327545db3017 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 10 Aug 2020 18:18:05 +0530 Subject: [PATCH] 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 --- qa/tasks/vstart_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- 2.39.5