Allow false positive rebuilds when timestamp collision occurs
Fixes #965
This commit is contained in:
parent
be4629a6a6
commit
6d1ff3af8c
6 changed files with 76 additions and 51 deletions
|
@ -6,6 +6,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Builder.Tests
|
||||
|
@ -59,18 +60,18 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
|
|||
{
|
||||
foreach (var rebuiltProject in expectedRebuilt)
|
||||
{
|
||||
AssertProjectCompiled(rebuiltProject, buildResult);
|
||||
buildResult.Should().HaveCompiledProject(rebuiltProject);
|
||||
}
|
||||
|
||||
foreach (var skippedProject in SetDifference(_projects, expectedRebuilt))
|
||||
{
|
||||
AssertProjectSkipped(skippedProject, buildResult);
|
||||
buildResult.Should().HaveSkippedProjectCompilation(skippedProject);
|
||||
}
|
||||
}
|
||||
|
||||
protected override string GetProjectDirectory(string projectName)
|
||||
{
|
||||
return Path.Combine(_tempProjectRoot.Path, "src", projectName);
|
||||
return Path.Combine(TempProjectRoot.Path, "src", projectName);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue