-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitProcess: allow GIT_TRACE to point to full path
- Loading branch information
1 parent
8dba3b4
commit 3a5009f
Showing
4 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/StatusVerbTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using GVFS.FunctionalTests.FileSystemRunners; | ||
using GVFS.Tests.Should; | ||
using NUnit.Framework; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture | ||
{ | ||
[TestFixture] | ||
public class StatusVerbTests : TestsWithEnlistmentPerFixture | ||
{ | ||
private enum ExpectedReturnCode | ||
{ | ||
Success = 0, | ||
ParsingError = 1, | ||
} | ||
|
||
[TestCase] | ||
public void GitTrace() | ||
{ | ||
Dictionary<string, string> environmentVariables = new Dictionary<string, string>(); | ||
|
||
this.Enlistment.Status(trace: "1"); | ||
this.Enlistment.Status(trace: "2"); | ||
|
||
string logPath = Path.Combine(this.Enlistment.RepoRoot, "log-file.txt"); | ||
this.Enlistment.Status(trace: logPath); | ||
|
||
FileSystemRunner fileSystem = new SystemIORunner(); | ||
fileSystem.FileExists(logPath).ShouldBeTrue(); | ||
string.IsNullOrWhiteSpace(fileSystem.ReadAllText(logPath)).ShouldBeFalse(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters