Auto merge of #117248 - ChrisDenton:ci-symlink, r=m-ou-se
Error if symlinks are not supported in CI In CI we want to run as many tests as possible and be alerted if a test isn't run for any reason.
This commit is contained in:
commit
9cf18e98f8
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ macro_rules! error_contains {
|
||||||
// tests most of the time, but at least we do if the user has the right
|
// tests most of the time, but at least we do if the user has the right
|
||||||
// permissions.
|
// permissions.
|
||||||
pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
|
pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
|
||||||
if cfg!(unix) {
|
if cfg!(not(windows)) || env::var_os("CI").is_some() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let link = tmpdir.join("some_hopefully_unique_link_name");
|
let link = tmpdir.join("some_hopefully_unique_link_name");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue