Merge pull request #3792 from monopole/nits

Fix nits, add internal GetRoot func.
This commit is contained in:
Jeff Regan
2021-04-12 07:53:00 -07:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -83,6 +83,10 @@ func makeBaseEnhancedHarness(t *testing.T) *HarnessEnhanced {
filesys.MakeFsOnDisk())}
}
func (th *HarnessEnhanced) GetRoot() string {
return th.ldr.Root()
}
func (th *HarnessEnhanced) Reset() {
if th.shouldWipeLdrRoot {
if !strings.HasPrefix(th.ldr.Root(), os.TempDir()) {