candidate: pin, activate and accept the six migrated stdlib components #12

Merged
cflmy merged 8 commits from migration/stdlib-m2-candidate into main 2026-11-27 01:48:53 +08:00
Showing only changes of commit 48189243f7 - Show all commits
+4 -2
View File
@@ -240,8 +240,8 @@ def component_gates(cli: str, bundle: Path) -> list[dict]:
def negative_gates(cli: str, bundle: Path, work: Path) -> list[dict]:
results = []
def expect_failure(name, command):
result = run(command)
def expect_failure(name, command, env_for_gate):
result = run(command, env=env_for_gate)
if result.returncode == 0:
raise AcceptanceError(f"negative gate {name} unexpectedly passed")
results.append(
@@ -259,6 +259,7 @@ def negative_gates(cli: str, bundle: Path, work: Path) -> list[dict]:
expect_failure(
"missing-explicit-bundle",
[cli, "run", str(ROOT / "tests/integration/composition/default-bundle.mq.md")],
env,
)
tampered = work / "tampered-bundle"
@@ -271,6 +272,7 @@ def negative_gates(cli: str, bundle: Path, work: Path) -> list[dict]:
expect_failure(
"tampered-module-digest",
[cli, "run", str(ROOT / "tests/integration/composition/default-bundle.mq.md")],
env,
)
return results