Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix bats setup/teardown #179

Closed
wants to merge 1 commit into from

Conversation

crazy-max
Copy link
Collaborator

@crazy-max crazy-max commented Dec 9, 2024

follow-up #178 (comment)

setup_file and teardown_file are available since bats 1.2.1 but Ubuntu 20.04 currently ships Bats 1.2.0-dev.

We can use setup and teardown which would behave the same.

@crazy-max crazy-max requested a review from tonistiigi December 9, 2024 14:05
@crazy-max crazy-max mentioned this pull request Dec 9, 2024
@crazy-max
Copy link
Collaborator Author

We can use setup and teardown which would behave the same.

Hum actually it doesn't, it runs them for each test where in our case we want to run it once for the file. I will look if we can instead update bats.

@crazy-max
Copy link
Collaborator Author

closed by #180

@crazy-max crazy-max closed this Dec 9, 2024
@crazy-max crazy-max deleted the fix-bats-setup branch December 9, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant