test(e2e): enforce the untracked-collision cell the autostash fix flips

An untracked file at a path upstream adds is now kept in the parked stash
(#124641), so its known_failure gate comes off.
This commit is contained in:
teknium1
2026-09-27 01:05:52 -07:00
committed by Teknium
parent 20dabfa869
commit 679a7a7314

View File

@@ -90,12 +90,9 @@ def test_untracked_file_colliding_with_a_new_upstream_file_is_not_lost(w):
assert w.head() == target, f"code update did not land:\n{w.diag(cp)}"
in_tree = (w.checkout / rel).read_text(encoding="utf-8") == mine
parked = any(t == mine.strip() for t in _stash_texts(w, rel))
with known_failure(r"untracked file .* is gone",
"gated on #124641 (fix: #124697): an untracked file at a path upstream adds is reported 'kept as-is', "
"replaced by upstream's copy, and its autostash is dropped"):
assert in_tree or parked, (
f"the user's untracked file {rel} is gone: the tree has upstream's copy and no stash keeps it:\n"
f"{w.diag(cp)}")
assert in_tree or parked, (
f"the user's untracked file {rel} is gone: the tree has upstream's copy and no stash keeps it:\n"
f"{w.diag(cp)}")
def test_local_commit_on_main_is_kept_behind_a_named_ref(w):