Skip to content

Commit 04cf993

Browse files
committed
allow symlinking during test
1 parent 7814452 commit 04cf993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Drop for TimeIt {
160160
/// Symlinks two directories, using junctions on Windows and normal symlinks on
161161
/// Unix.
162162
pub fn symlink_dir(config: &Config, original: &Path, link: &Path) -> io::Result<()> {
163-
if config.dry_run() {
163+
if config.dry_run() && !cfg!(test) {
164164
return Ok(());
165165
}
166166
let _ = fs::remove_dir_all(link);

0 commit comments

Comments
 (0)