From: Jérémie Galarneau Date: Fri, 16 Jun 2023 21:01:13 +0000 (-0400) Subject: Tests fix: lttngtest: quote session output path X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=305361800bfae50d8c3192744d260fd640fec4d0 Tests fix: lttngtest: quote session output path 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 --- 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: