We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7814452 commit 04cf993Copy full SHA for 04cf993
src/bootstrap/src/utils/helpers.rs
@@ -160,7 +160,7 @@ impl Drop for TimeIt {
160
/// Symlinks two directories, using junctions on Windows and normal symlinks on
161
/// Unix.
162
pub fn symlink_dir(config: &Config, original: &Path, link: &Path) -> io::Result<()> {
163
- if config.dry_run() {
+ if config.dry_run() && !cfg!(test) {
164
return Ok(());
165
}
166
let _ = fs::remove_dir_all(link);
0 commit comments