Skip to content

Commit 95cdffe

Browse files
committed
test: leave the installs row of the host out of the upgrade test's workspace check
A Homebrew cstudy next to the checkout's own makes the installs row WARN, which says something about the machine, not about the upgraded workspace the test checks.
1 parent af72767 commit 95cdffe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎cli/tests/entrypoints/commands/test_upgrade_end_to_end.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,14 @@ def test_after_the_fix_nothing_that_is_set_up_warns_or_fails(upgrade: Upgrade):
118118
for line in upgrade.after.output.splitlines()
119119
if line.startswith(("WARN", "FAIL")) and not line.endswith(unset)
120120
]
121-
assert [line for line in flagged if "runner" not in line and "libraries" not in line] == []
121+
about_the_workspace = [
122+
line
123+
for line in flagged
124+
if "runner" not in line
125+
and "libraries" not in line
126+
and not line.startswith("WARN installs")
127+
]
128+
assert about_the_workspace == []
122129

123130

124131
def test_the_project_starts_after_the_upgrade(upgrade: Upgrade):

0 commit comments

Comments
 (0)