From b212c5122904b89f783efda97ec75761d99d4573 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 14 Oct 2024 00:14:06 -0700 Subject: [PATCH] Fix python --- src/tests/Common/scripts/crossgen2_comparison.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/Common/scripts/crossgen2_comparison.py b/src/tests/Common/scripts/crossgen2_comparison.py index c0983ccc04050..17ad120b0058a 100644 --- a/src/tests/Common/scripts/crossgen2_comparison.py +++ b/src/tests/Common/scripts/crossgen2_comparison.py @@ -523,7 +523,8 @@ async def create_debugging_file(self, ni_filename, debugging_files_dirname, plat def _build_args_crossgen_il_file(self, il_filename, ni_filename, platform_assemblies_paths, target_os, target_arch): args = [] - args.append(self.dotnet) + if self.dotnet: + args.append(self.dotnet) args.append(self.crossgen_executable_filename) args.append('-r') args.append('"' + platform_assemblies_paths + self.platform_directory_sep + '*.dll"' )