Skip to content

Commit ba02fed

Browse files
Remove vstest special version handling (#2257)
* Remove vstest special version handling * Remove special testcase for vstest
1 parent 588954b commit ba02fed

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

build.sh

100644100755
File mode changed.

src/Microsoft.DotNet.Darc/src/DarcLib/Helpers/VersionFiles.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ public static (string BuildId, string ReleaseLabel) DeriveBuildInfo(string repoN
8585

8686
if (releaseParts.Length == 3)
8787
{
88-
// VSTest uses full dates for the first part of their preview build numbers
89-
if (repoName.Contains("vstest"))
90-
{
91-
return ($"{releaseParts[1]}.{releaseParts[2]}", releaseParts[0]);
92-
}
93-
9488
if (int.TryParse(releaseParts[1], out int datePart) && int.TryParse(releaseParts[2], out int buildPart))
9589
{
9690
if (datePart > 1 && datePart < 8 && buildPart > 1000 && buildPart < 10000)

src/Microsoft.DotNet.Darc/tests/Microsoft.DotNet.DarcLib.Tests/Helpers/VersionFileTests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ public void OldPreviewVersionIsDerivedTest()
3232
.Should().Be((DateTime.Now.ToString("20220413.1"), "beta"));
3333
}
3434

35-
[Test]
36-
public void VsTestVersionIsDerivedTest()
37-
{
38-
VersionFiles.DeriveBuildInfo("vstest", "17.4.0-preview-20220813-01")
39-
.Should().Be((DateTime.Now.ToString("20220813.01"), "preview"));
40-
}
41-
4235
[Test]
4336
public void NewPreviewVersionIsDerivedTest()
4437
{

0 commit comments

Comments
 (0)