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

[4.0 -> main] Clean tmp and TestLogs after test runs #942

Merged
merged 11 commits into from
Mar 31, 2023

Conversation

ClaytonCalabrese
Copy link
Contributor

@ClaytonCalabrese ClaytonCalabrese commented Mar 31, 2023

Takes this PR from 4.0 and puts it into main #915

`This PR cleans up a number of tests that have been littering.

unittests/snapshot_tests.cpp was leaving tmp files around even on success

These tests were all leaving logs around in TestLogs even on on success:
tests/auto_bp_peering_test.py
tests/cli_test.py
tests/nodeos_contrl_c_test.py
tests/plugin_http_api_test.py
tests/trace_plugin_test.py
test/performance_test_basic (nonbasic also as a result)

unittests/restart_chain_tests.cpp had some old code that was unused, which had previously behaved similarly to temp_dir.

Additionally changed tests/TestHarness/WalletMgr.py to clean up the test wallets after test success.

Resolves: #719

@ClaytonCalabrese ClaytonCalabrese self-assigned this Mar 31, 2023
@heifner heifner requested a review from ScottBailey March 31, 2023 19:20
@heifner heifner added the OCI Work exclusive to OCI team label Mar 31, 2023
Copy link
Contributor

@ScottBailey ScottBailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@ClaytonCalabrese ClaytonCalabrese merged commit 7f5a789 into main Mar 31, 2023
@ClaytonCalabrese ClaytonCalabrese deleted the cleanup_after_logs_release_4_0_to_main branch March 31, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Temporary files remain after test failures
3 participants