From daf0086f67e768b83cdd4d1bd19e5f3e8e2525af Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Mon, 4 Dec 2023 23:20:06 +0100 Subject: [PATCH] Properly quote reframe command in output --- reframe/frontend/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/frontend/cli.py b/reframe/frontend/cli.py index 8c59a68019..ed4925c0f0 100644 --- a/reframe/frontend/cli.py +++ b/reframe/frontend/cli.py @@ -962,7 +962,7 @@ def print_infoline(param, value): printer.info(f" {param.ljust(18)} {value}") session_info = { - 'cmdline': ' '.join(sys.argv), + 'cmdline': ' '.join(shlex.quote(arg) for arg in sys.argv), 'config_files': rt.site_config.sources, 'data_version': runreport.DATA_VERSION, 'hostname': socket.gethostname(),