示例#1
0
        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);
        }
示例#2
0
 public void DeleteEnlistment()
 {
     TestResultsHelper.OutputGSDLogs(this);
     RepositoryHelpers.DeleteTestDirectory(this.EnlistmentRoot);
 }