Update expected SDK version test to work with multiple stages
This commit is contained in:
parent
12f8c2377f
commit
e4777c0b91
2 changed files with 29 additions and 11 deletions
|
@ -17,7 +17,7 @@ namespace Microsoft.DotNet.Tests
|
|||
[Fact]
|
||||
public void VersionCommandDisplaysCorrectVersion()
|
||||
{
|
||||
var versionFilePath = Path.Combine(AppContext.BaseDirectory, ".version");
|
||||
var versionFilePath = Path.Combine(AppContext.BaseDirectory, "ExpectedSdkVersion.txt");
|
||||
var version = GetVersionFromFile(versionFilePath);
|
||||
|
||||
CommandResult result = new DotnetCommand()
|
||||
|
@ -31,14 +31,8 @@ namespace Microsoft.DotNet.Tests
|
|||
{
|
||||
using (var reader = new StreamReader(File.OpenRead(versionFilePath)))
|
||||
{
|
||||
SkipCommit(reader);
|
||||
return reader.ReadLine();
|
||||
}
|
||||
}
|
||||
|
||||
private void SkipCommit(StreamReader reader)
|
||||
{
|
||||
reader.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue