allow symlinking during test
This commit is contained in:
parent
ce4604e34e
commit
24ed1a0455
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue