From 305361800bfae50d8c3192744d260fd640fec4d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 16 Jun 2023 17:01:13 -0400 Subject: [PATCH] Tests fix: lttngtest: quote session output path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The output path used with the `--output` option must be quoted since it can contain spaces. Signed-off-by: Jérémie Galarneau Change-Id: I7bf557f64d3fb72a10230ad9da9d59872672e11c --- tests/utils/lttngtest/lttng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/lttngtest/lttng.py b/tests/utils/lttngtest/lttng.py index 6b86bbac5..9dd21fb03 100644 --- a/tests/utils/lttngtest/lttng.py +++ b/tests/utils/lttngtest/lttng.py @@ -435,7 +435,7 @@ class LTTngClient(logger._Logger, lttngctl.Controller): name = name if name else lttngctl.Session._generate_name() if isinstance(output, lttngctl.LocalSessionOutputLocation): - output_option = "--output {output_path}".format(output_path=output.path) + output_option = "--output '{output_path}'".format(output_path=output.path) elif output is None: output_option = "--no-output" else: -- 2.34.1