From 8475464fbe43edbab1b5b763630dd9e3d34e640f Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Mon, 11 Sep 2023 09:58:25 +0200 Subject: [PATCH] C#: Cleanup hotfix version of quoting. --- csharp/ql/integration-tests/all-platforms/dotnet_run/test.py | 1 - csharp/tools/tracing-config.lua | 4 ---- 2 files changed, 5 deletions(-) diff --git a/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py b/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py index 583d5cc2476..65e8309dac0 100644 --- a/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py +++ b/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py @@ -54,7 +54,6 @@ s = run_codeql_database_create_stdout(['dotnet clean', 'rm -rf test7-db', 'dotne check_build_out("hello, world", s) check_diagnostics(test_db="test8-db") - # two arguments, no '--' (first argument quoted) s = run_codeql_database_create_stdout(['dotnet clean', 'rm -rf test8-db', 'dotnet run "hello world part1" part2'], "test9-db") check_build_out("hello world part1, part2", s) diff --git a/csharp/tools/tracing-config.lua b/csharp/tools/tracing-config.lua index 1b63cb9caeb..716a6f42cee 100644 --- a/csharp/tools/tracing-config.lua +++ b/csharp/tools/tracing-config.lua @@ -84,10 +84,6 @@ function RegisterExtractorPack(id) dotnetRunNeedsSeparator = false dotnetRunInjectionIndex = i end - -- if we encounter a whitespace, we explicitly need to quote the argument. - if OperatingSystem == 'windows' and arg:match('%s') then - argv[i] = '"' .. arg .. '"' - end end if match then local injections = { '-p:UseSharedCompilation=false', '-p:EmitCompilerGeneratedFiles=true' }