rust/tests
bors 9f9877c47f Auto merge of #5662 - ebroto:cargo_tests_invalid_crate, r=flip1995
cargo-ui tests: check that <dir>/src exists before processing 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
2020-05-31 19:12:00 +00:00
..
auxiliary
cargo
ui Add tests for empty blocks 2020-05-31 19:29:36 +02:00
ui-cargo Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2 2020-05-28 15:45:24 +02:00
ui-toml
compile-test.rs cargo-ui tests: check that <dir>/src exists before processing test 2020-05-31 20:38:48 +02:00
dogfood.rs
fmt.rs
integration.rs
missing-test-files.rs
versioncheck.rs