Skip to content

Commit 889ce71

Browse files
committed
Change from relative to full paths
1 parent 2d96d5c commit 889ce71

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class EnvironmentSetupHelper
5353

5454
private AzureAccount testAccount;
5555

56-
private const string PackageDirectoryFromCommon = @"..\..\..\..\Package\Debug";
56+
private static string PackageDirectoryFromCommon { get; } = GetConfigDirectory();
5757

5858
public static string PackageDirectory { get; } = GetConfigDirectory();
5959
public static string StackDirectory { get; } = GetConfigDirectory("Stack");
@@ -184,7 +184,7 @@ private static string ProbeForSrcDirectory()
184184
directoryPath = Path.Combine(directoryPath, "..");
185185
}
186186

187-
string result = Directory.Exists(directoryPath) ? Path.Combine(directoryPath, "src") : null;
187+
string result = Directory.Exists(directoryPath) ? Path.GetFullPath(Path.Combine(directoryPath, "src")) : null;
188188
return result;
189189
}
190190

@@ -198,6 +198,10 @@ private static string GetConfigDirectory(string targetDirectory = "Package")
198198
if (Directory.Exists(baseDirectory))
199199
{
200200
result = Directory.EnumerateDirectories(baseDirectory).FirstOrDefault();
201+
if (result != null)
202+
{
203+
result = Path.GetFullPath(result);
204+
}
201205
}
202206
}
203207

0 commit comments

Comments
 (0)