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: check the existence of target_path_parent before detelting #33812

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

yihau
Copy link
Member

@yihau yihau commented Oct 22, 2023

Problem

when install_if_missing receives a "permission denied" error, target_path_parent doesn't exist. if we remove it without checking, the real error will be hidden and return a "directory doesn't exist" error

Summary of Changes

check the existence of target_path_parent before delete it

@yihau yihau added the automerge Merge this Pull Request automatically once CI passes label Oct 22, 2023
@yihau yihau requested a review from dmakarov October 22, 2023 18:34
@codecov
Copy link

codecov bot commented Oct 22, 2023

Codecov Report

Merging #33812 (1d58265) into master (abf3b3e) will decrease coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #33812     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         807      807             
  Lines      217406   217406             
=========================================
- Hits       178043   178008     -35     
- Misses      39363    39398     +35     

@mergify mergify bot merged commit 7d56c34 into solana-labs:master Oct 23, 2023
43 checks passed
@yihau yihau deleted the fix-test branch October 30, 2023 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants