chore: align two tests with the merged lock flow

The lock refusal moved to stderr and pipeline labels lost their /8 in
two branches that met at merge.
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 05:53:01 +02:00
1 parent 9f1dbaa6c2
commit ce10323f7c
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ class PackLockCliTest(unittest.TestCase):
except subprocess.TimeoutExpired:
self.fail("generate_pack waited on the data tree instead of refusing")
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertIn("is in use by another run", proc.stdout)
self.assertIn("is in use by another run", proc.stderr)
def test_every_writing_mode_refuses_a_locked_output(self):
"""Two of seven modes took the lock, and five wrote straight into it.
+5 -1
View File
@@ -6115,8 +6115,12 @@ class SkipPacksHelpSaysWhatRuns(unittest.TestCase):
self.assertIn("Steps 7 and 8 still rewrite README.md and docs/", text)
def test_every_step_it_names_is_one_it_skips(self):
sys.path.insert(0, str(ROOT / "scripts"))
import pipeline
source = (ROOT / "scripts" / "pipeline.py").read_text(encoding="utf-8")
skipped = set(re.findall(r"--- (\w+)/8 [^\n]*SKIPPED \(--skip-packs\)", source))
keys = re.findall(r'skip_notice\("(\w+)", "--skip-packs"\)', source)
skipped = {pipeline.step_number(key) for key in keys}
self.assertEqual(skipped, {"4", "4b", "4c", "6"})