Skip to content

Commit

Permalink
tests: uninstall formula before untap (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Apr 9, 2024
1 parent 676d589 commit e637a8b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ def homebrew_core_fork_repo():

@pytest.fixture(scope='function')
def brew_untap():
# uninstall hello_world formula
proc = subprocess.run(
args=['brew', 'uninstall', 'hello_world'],
capture_output=True,
)
if proc.returncode != 0:
print(proc.stderr.decode('utf-8'))
raise Exception('Failed to uninstall hello_world formula')

# untap the temporary repo
proc = subprocess.run(
args=['brew', 'untap', main.temp_repo],
capture_output=True,
Expand Down

0 comments on commit e637a8b

Please sign in to comment.