Skip to content

Commit

Permalink
Fix Tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Aug 29, 2023
1 parent 6e4ee36 commit 5ef95b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,11 @@ public static void VerifyPortablePackage(
bool shouldExist,
Scope scope = Scope.User)
{
// When portables are installed, if the exe path is inside a directory it will not be aliased
// if the exe path is at the root level, it will be aliased. Therefore, if either exist, the exe exists
string exePath = Path.Combine(installDir, filename);
bool exeExists = File.Exists(exePath);
string exeAliasedPath = Path.Combine(installDir, commandAlias);
bool exeExists = File.Exists(exePath) || File.Exists(exeAliasedPath);

string symlinkDirectory = GetPortableSymlinkDirectory(scope);
string symlinkPath = Path.Combine(symlinkDirectory, commandAlias);
Expand Down

0 comments on commit 5ef95b7

Please sign in to comment.