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

feat: add testnet cleanup on interrupted test run #2659

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

mkoura
Copy link
Collaborator

@mkoura mkoura commented Oct 1, 2024

  • Introduced _cleanup_testnet function to handle testnet cleanup.
  • Modified the trap to call _interrupted function on SIGINT.
  • Added pytest_keyboard_interrupt hook to create a status file.
  • Updated setup_venv.sh to create venv only if it doesn't exist.
  • Enhanced testenv_setup_teardown to handle interrupted test runs.

- Introduced `_cleanup_testnet` function to handle testnet cleanup.
- Modified the trap to call `_interrupted` function on SIGINT.
- Added `pytest_keyboard_interrupt` hook to create a status file.
- Updated `setup_venv.sh` to create venv only if it doesn't exist.
- Enhanced `testenv_setup_teardown` to handle interrupted test runs.
@mkoura mkoura merged commit b9cf4c2 into master Oct 1, 2024
3 checks passed
@mkoura mkoura deleted the testnet_cleanup branch October 1, 2024 14:25
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