From 91ba52cfc867e89f6fe78ffee329699829ec4ecf Mon Sep 17 00:00:00 2001 From: Milos Kotlar Date: Fri, 28 Jul 2023 20:28:15 +0200 Subject: [PATCH] Set load prefix for apple mobile runtime tests (#89572) --- src/tests/build.proj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/build.proj b/src/tests/build.proj index b054938..8737c34 100644 --- a/src/tests/build.proj +++ b/src/tests/build.proj @@ -369,7 +369,7 @@ @@ -383,8 +383,8 @@ { string value = item.ItemSpec; - // Add the MONO_APPLE_APP_ENTRY_POINT_LIB_NAME environment parameter to the run script - string output = lastLine.Replace("apple test", "apple run").Replace("--signal-app-end", $"--expected-exit-code=100 --set-env=MONO_APPLE_APP_ENTRY_POINT_LIB_NAME={value}") + "&& echo \"Test passed\" || { echo \"Test failed\"; exit 1; }"; + // Add the MONO_APPLE_APP_ENTRY_POINT_LIB_NAME and MONO_APPLE_APP_ASSEMBLY_LOAD_PREFIX environment parameters to the run script + string output = lastLine.Replace("apple test", "apple run").Replace("--signal-app-end", $"--expected-exit-code=100 --set-env=MONO_APPLE_APP_ENTRY_POINT_LIB_NAME={value} --set-env=MONO_APPLE_APP_ASSEMBLY_LOAD_PREFIX={value.Split('/')[0]}") + "&& echo \"Test passed\" || { echo \"Test failed\"; exit 1; }"; resultBuilder.AppendLine(output); // Rename the log file to match the MONO_APPLE_APP_ENTRY_POINT_LIB_NAME -- 2.7.4