From 5ff299f4e7b3a4c5687435ea463b032a31231f2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alicia=20Boya=20Garc=C3=ADa?= Date: Mon, 30 Jul 2018 21:36:48 +0200 Subject: [PATCH] gst-validate-launcher: Print copypaste-friendlier commands This patch removes the quotes surrounding the command shown by gst-validate to reproduce the issues -- which were troublesome when copying and pasting. It also introduces escaping for the arguments, so that the command line can be copied and pasted in the terminal without further changes. https://bugzilla.gnome.org/show_bug.cgi?id=796897 --- validate/launcher/baseclasses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 6630e5f..59e3275 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -480,11 +480,12 @@ class Test(Loggable): return message def get_command_repr(self): - message = "%s %s" % (self._env_variable, ' '.join(self.command)) + message = "%s %s" % (self._env_variable, ' '.join( + shlex.quote(arg) for arg in self.command)) if self.server_command: message = "%s & %s" % (self.server_command, message) - return "'%s'" % message + return message def test_start(self, queue): self.open_logfile() -- 2.7.4