-
Couldn't load subscription status.
- Fork 3.4k
Have test harness delete all old Emscripten files in the temp directory #25614
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -525,6 +525,19 @@ def configure(): | |
| common.configure_test_browser() | ||
|
|
||
|
|
||
| def cleanup_emscripten_temp(): | ||
| """Deletes all files and directories under Emscripten | ||
| that look like they might have been created by Emscripten.""" | ||
| for entry in os.listdir(shared.TEMP_DIR): | ||
| if entry.startswith(('emtest_', 'emscripten_')): | ||
| entry = os.path.join(shared.TEMP_DIR, entry) | ||
| try: | ||
| if os.path.isdir(entry): | ||
| utils.delete_dir(entry) | ||
| except Exception: | ||
| pass | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair enough |
||
|
|
||
|
|
||
| def main(): | ||
| options = parse_args() | ||
|
|
||
|
|
@@ -573,6 +586,7 @@ def set_env(name, option_value): | |
| check_js_engines() | ||
|
|
||
| # Remove any old test files before starting the run | ||
| cleanup_emscripten_temp() | ||
| utils.delete_file(common.flaky_tests_log_filename) | ||
| utils.delete_file(common.browser_spawn_lock_filename) | ||
| utils.delete_file(f'{common.browser_spawn_lock_filename}_counter') | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.