Merged PR 765577: Pull Request 765568: Remove the runWithUntrackedDependencies from Test.BuildXL.Utilities dll

Removed the flag runWithUntrackedDependencies from all the corresponding dll's under Utilities.
This commit is contained in:
Sahiti Chandramouli 2024-02-05 23:59:06 +00:00
Родитель 384b078e44
Коммит 5b4bb2ae7a
4 изменённых файлов: 12 добавлений и 19 удалений

Просмотреть файл

@ -9,12 +9,6 @@ namespace Authentication {
assemblyName: "Test.BuildXL.Utilities.Authentication",
allowUnsafeBlocks: true,
sources: globR(d`.`, "*.cs"),
runTestArgs: {
// These tests require Detours to run itself, so we won't detour the test runner process itself
unsafeTestRunArguments: {
runWithUntrackedDependencies: true
},
},
references: [
importFrom("BuildXL.Utilities").dll,
importFrom("BuildXL.Utilities").Authentication.dll,

Просмотреть файл

@ -36,11 +36,5 @@ namespace PackedExecution {
importFrom("BuildXL.Utilities").ToolSupport.dll,
importFrom("BuildXL.Utilities").Utilities.Core.dll,
],
runTestArgs: {
unsafeTestRunArguments: {
// runs TestProcess with sandboxing
runWithUntrackedDependencies: true
}
}
});
}

Просмотреть файл

@ -38,7 +38,7 @@ namespace Test.BuildXL.Utilities
[FactIfSupported(requiresLinuxBasedOperatingSystem: true)]
public void TestAlreadyExists()
{
var semaphoreName = "/sem";
var semaphoreName = "/" + Guid.NewGuid().ToString().Replace("-", "");
var sem1 = SemaphoreFactory.CreateNew(semaphoreName, 1, 2);
Assert.True(sem1.Succeeded);

Просмотреть файл

@ -12,12 +12,17 @@ namespace Core {
assemblyName: "Test.BuildXL.Utilities",
allowUnsafeBlocks: true,
sources: globR(d`.`, "*.cs"),
runTestArgs: {
// These tests require Detours to run itself, so we won't detour the test runner process itself
unsafeTestRunArguments: {
runWithUntrackedDependencies: true
}
},
runTestArgs: {
unsafeTestRunArguments: {
untrackedScopes: [
...addIfLazy(Context.getCurrentHost().os === "win", () => [
d`${Context.getMount("ProgramFiles").path}/Git/etc/gitconfig`,
d`${Context.getMount("SourceRoot").path}/.git`,
]),
...addIfLazy(!Context.isWindowsOS(), () => [d`/tmp/.dotnet/shm`])
]
},
},
references: [
importFrom("BuildXL.Cache.ContentStore").Hashing.dll,
importFrom("BuildXL.Utilities").dll,