Look inside one extra folder
This commit is contained in:
parent
ed92f2c9c3
commit
f947a6cc4c
1 changed files with 10 additions and 10 deletions
|
@ -1,9 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||||
using Microsoft.NET.Sdk.WorkloadManifestReader;
|
using Microsoft.NET.Sdk.WorkloadManifestReader;
|
||||||
|
@ -26,16 +23,19 @@ namespace EndToEnd.Tests
|
||||||
{
|
{
|
||||||
var sdkManifestDir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk-manifests");
|
var sdkManifestDir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk-manifests");
|
||||||
var sdkversionDir = new DirectoryInfo(sdkManifestDir).EnumerateDirectories().First();
|
var sdkversionDir = new DirectoryInfo(sdkManifestDir).EnumerateDirectories().First();
|
||||||
foreach (var manifestDir in sdkversionDir.EnumerateDirectories())
|
foreach (var manifestVersionDir in sdkversionDir.EnumerateDirectories())
|
||||||
{
|
{
|
||||||
var manifestId = manifestDir.Name;
|
foreach (var manifestDir in manifestVersionDir.EnumerateDirectories())
|
||||||
|
{
|
||||||
|
var manifestId = manifestDir.Name;
|
||||||
|
|
||||||
string manifestFile = manifestDir.GetFile("WorkloadManifest.json").FullName;
|
string manifestFile = manifestDir.GetFile("WorkloadManifest.json").FullName;
|
||||||
|
|
||||||
File.Exists(manifestFile).Should().BeTrue();
|
File.Exists(manifestFile).Should().BeTrue();
|
||||||
using var fileStream = new FileStream(manifestFile, FileMode.Open, FileAccess.Read);
|
using var fileStream = new FileStream(manifestFile, FileMode.Open, FileAccess.Read);
|
||||||
Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
|
Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
|
||||||
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");
|
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue