private ICommandLineConfiguration WriteSpecs(string testRoot, BuildDefinition contents) { SpecEvaluationBuilder specBuilder = contents .Specs .Aggregate( seed: Build().TestRootDirectory(testRoot), func: (acc, specTuple) => acc.AddSpec(specTuple.SpecPath, specTuple.SpecContent)); var config = (CommandLineConfiguration)specBuilder.PersistSpecsAndGetConfiguration(); config.Cache.AllowFetchingCachedGraphFromContentCache = false; return(config); }
private ICommandLineConfiguration WriteSpecs(string testRoot, BuildDefinition contents) { SpecEvaluationBuilder specBuilder = contents .Specs .Aggregate( seed: Build().TestRootDirectory(testRoot), func: (acc, specTuple) => acc.AddSpec(specTuple.SpecPath, specTuple.SpecContent)); var config = (CommandLineConfiguration)specBuilder.PersistSpecsAndGetConfiguration(); config.Cache.AllowFetchingCachedGraphFromContentCache = false; // Make sure to use a different output directory for each test case config.Layout.OutputDirectory = global::BuildXL.Utilities.AbsolutePath.Create(PathTable, Path.Combine(testRoot, "out")); return(config); }