private static GSDFunctionalTestEnlistment CloneAndMount(string pathToGvfs, string enlistmentRoot, string commitish, string localCacheRoot, bool skipPrefetch = false) { GSDFunctionalTestEnlistment enlistment = new GSDFunctionalTestEnlistment( pathToGvfs, enlistmentRoot ?? GetUniqueEnlistmentRoot(), GSDTestConfig.RepoToClone, commitish ?? Properties.Settings.Default.Commitish, localCacheRoot ?? GSDTestConfig.LocalCacheRoot); try { enlistment.CloneAndMount(skipPrefetch); } catch (Exception e) { Console.WriteLine("Unhandled exception in CloneAndMount: " + e.ToString()); TestResultsHelper.OutputGSDLogs(enlistment); throw; } return(enlistment); }
public void DeleteEnlistment() { TestResultsHelper.OutputGSDLogs(this); RepositoryHelpers.DeleteTestDirectory(this.EnlistmentRoot); }