Tests fix: lttngtest: quote session output path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Jun 2023 21:01:13 +0000 (17:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Jun 2023 18:49:17 +0000 (14:49 -0400)
The output path used with the `--output` option must be quoted since it
can contain spaces.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I7bf557f64d3fb72a10230ad9da9d59872672e11c

tests/utils/lttngtest/lttng.py

index 6b86bbac56aec3cdf36f537cec81ecd1531eba0a..9dd21fb033fc7566411c2d369a1e1d1083ace26c 100644 (file)
@@ -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:
This page took 0.025169 seconds and 4 git commands to generate.