Skip to content

Commit a1f03c6

Browse files
committed
Use which dotnet in tests instead of the readlink for symlinks
After we made it so if theres no dotnet it does not try to read a symlink which dotnet went back to being the correct result
1 parent 6941b5c commit a1f03c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vscode-dotnet-runtime-library/src/test/unit/LinuxDistroTests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Microsoft.NETCore.App 7.0.5 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]`;
104104
if(shouldRun)
105105
{
106106
await provider.getInstalledGlobalDotnetPathIfExists(installType);
107-
assert.equal(mockExecutor.attemptedCommand, 'readlink -f /usr/bin/dotnet');
107+
assert.equal(mockExecutor.attemptedCommand, 'which dotnet');
108108
}
109109
}).timeout(standardTimeoutTime);
110110

vscode-dotnet-runtime-library/src/test/unit/RedHatDistroTests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Microsoft.NETCore.App 7.0.5 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]`;
104104
if(shouldRun)
105105
{
106106
await provider.getInstalledGlobalDotnetPathIfExists(installType);
107-
assert.equal(mockExecutor.attemptedCommand, 'readlink -f /usr/bin/dotnet');
107+
assert.equal(mockExecutor.attemptedCommand, 'which dotnet');
108108
}
109109
}).timeout(standardTimeoutTime);
110110

0 commit comments

Comments
 (0)