Skip to content

Commit

Permalink
Fix test 'eco' (#2819)
Browse files Browse the repository at this point in the history
* Add diff in test 'eco' to help figure issue

* Sanitize venv path in eco test

Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
zigarn and ssbarnea authored Dec 14, 2022
1 parent bb8bca3 commit 3019e46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_eco.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def sanitize_output(text: str) -> str:
result = re.sub(
r"^WARNING: PATH altered to include.+\n", "", result, flags=re.MULTILINE
)
# replace venv path
result = result.replace(".tox/venv", ".tox/eco")

return result

Expand Down Expand Up @@ -84,5 +86,6 @@ def test_eco(repo: str) -> None:
shell=True,
check=False,
capture_output=True,
text=True,
)
assert result.returncode == 0, result_txt
assert result.returncode == 0, result_txt + f"\nDIFF:\n{result.stdout}"

0 comments on commit 3019e46

Please sign in to comment.