Skip to content

Commit b0bebf3

Browse files
authored
Fix merge conflict
1 parent bc08ddb commit b0bebf3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Platform/Microsoft.Testing.Platform/Configurations/AggregatedConfiguration.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using Microsoft.Testing.Platform.CommandLine;
@@ -70,12 +70,7 @@ public void SetTestHostWorkingDirectory(string workingDirectory) =>
7070

7171
public async Task CheckTestResultsDirectoryOverrideAndCreateItAsync(IFileLoggerProvider? fileLoggerProvider)
7272
{
73-
<<<<<<< HEAD
74-
// Load Configuration
75-
_currentWorkingDirectory = Path.GetDirectoryName(_testApplicationModuleInfo.GetCurrentTestApplicationFullPath())!;
76-
=======
7773
_resultsDirectory = _fileSystem.CreateDirectory(this[PlatformConfigurationConstants.PlatformResultDirectory]!);
78-
>>>>>>> Consider `--results-directory` before configuration
7974

8075
// In case of the result directory is overridden by the config file we move logs to it.
8176
// This can happen in case of VSTest mode where the result directory is set to a different location.
@@ -117,5 +112,5 @@ private string GetCurrentWorkingDirectoryCore()
117112
// If first time calculating it, prefer the value from configuration,
118113
?? CalculateFromConfigurationProviders(PlatformConfigurationConstants.PlatformCurrentWorkingDirectory)
119114
// then fallback to the actual working directory.
120-
?? _testApplicationModuleInfo.GetCurrentTestApplicationDirectory();
115+
?? Path.GetDirectoryName(_testApplicationModuleInfo.GetCurrentTestApplicationFullPath())!;
121116
}

0 commit comments

Comments
 (0)