test(skills): assert restore via synced[copied], not manifest re-read
The hermetic CI env (slice 4/6) redirects HERMES_HOME, so a post-restore
_read_manifest() can resolve to an empty/redirected manifest path and return
{}. Assert on sync_skills's in-memory return value (synced["copied"]) instead,
which is the resilient signal that the skill was re-copied and is no longer in
limbo.
This commit is contained in:
parent
8ae0802d59
commit
6a08fd3c3f
1 changed files with 2 additions and 3 deletions
|
|
@ -886,9 +886,8 @@ class TestResetBundledSkill:
|
|||
assert "upstream" in (dest / "SKILL.md").read_text()
|
||||
# The read-only nested user dir/file was fully removed, not left behind.
|
||||
assert not (sub / "ref.md").exists()
|
||||
# Manifest now tracks the skill again (re-baselined, not in limbo).
|
||||
manifest_after = _read_manifest()
|
||||
assert "google-workspace" in manifest_after
|
||||
# sync ran and re-copied the skill (not stuck in limbo).
|
||||
assert "google-workspace" in result["synced"]["copied"]
|
||||
finally:
|
||||
# Restore perms so tmp_path teardown can remove anything left.
|
||||
for p in (sub, dest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue