diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-09-16 21:18:58 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-09-21 20:56:11 +0530 |
| commit | 24ed1a0455ced62f48402f6740effbf818f45269 (patch) | |
| tree | f21296a9d589a79b824693663ba8907d44d3ab12 /src | |
| parent | ce4604e34e6f29740b41306806c6bd7947e103a4 (diff) | |
| download | rust-24ed1a0455ced62f48402f6740effbf818f45269.tar.gz rust-24ed1a0455ced62f48402f6740effbf818f45269.zip | |
allow symlinking during test
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/utils/helpers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index e802c0214dd..0561f343a8c 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -160,7 +160,7 @@ impl Drop for TimeIt { /// Symlinks two directories, using junctions on Windows and normal symlinks on /// Unix. pub fn symlink_dir(config: &Config, original: &Path, link: &Path) -> io::Result<()> { - if config.dry_run() { + if config.dry_run() && !cfg!(test) { return Ok(()); } let _ = fs::remove_dir_all(link); |
