fix: isolate rebuilt pilot package versions
This commit is contained in:
@@ -36,4 +36,12 @@ public sealed class FoundationTests
|
||||
try { var store = new LocalPackageStore(root, new Sha256FileHasher()); var active = await store.SynchronizeAsync(manifest, source, CancellationToken.None); var packageRoot = Path.Combine(root, "Applications", manifest.PackageId, "versions", active.CurrentVersion); var script = new StartupScriptBuilder().BuildNetloadScript(packageRoot, manifest.EntryAssembly); var launch = new DryRunAutodeskProcessLauncher().Prepare(new LaunchRequest(new("C:\\acad.exe", "2026", "x64", []), "Pilot", script, true)); Assert.False(launch.WouldStart); Assert.Single(System.Text.RegularExpressions.Regex.Matches(script, "netload", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Cast<object>()); }
|
||||
finally { Directory.Delete(root, true); }
|
||||
}
|
||||
[Fact] public void PilotCli_UsesContentAddressedVersionForImmutableActivation()
|
||||
{
|
||||
var root = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
while (root is not null && !File.Exists(Path.Combine(root.FullName, "Launcher.Next.sln"))) root = root.Parent;
|
||||
var source = File.ReadAllText(Path.Combine(root!.FullName, "Launcher.Next.App", "PilotCli.cs"));
|
||||
Assert.Contains("contentIdentity", source);
|
||||
Assert.Contains("assemblyVersion + \"-\" + contentIdentity", source);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user