-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cargo-ui tests: check that <dir>/src exists before processing test #5662
Conversation
r? @flip1995 (rust_highfive has picked a reviewer for you, use r? to override) |
I also realized, that this doesn't work in the rustc test suite. Are you motivated to look into that? If you need help to set up the rustc test suite, feel free to ask. r=me with @matthiaskrgr comment addressed. |
Sure, I'll take a look at it in the coming days |
f10ca00
to
27c0166
Compare
27c0166
to
14e9100
Compare
@bors r+ |
📌 Commit 14e9100 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
I forgot that I had fixed this in a PR I closed some days ago (#5643).
Before this change, cargo UI tests could fail when switching between branches if the previous branch had a test that the current branch does not have. The directory is not removed when switching because an ignored
Cargo.lock
file exists, and the code was trying to reach$DIR/src
unconditionally.This change will just skip a directory that has no
src
subdirectory.changelog: none