Merge pull request #611 from AdvaitPalve11/fix/config-show-data-dir
core: show data_dir in config and check its asset policy
This commit is contained in:
commit
8bf5ba956a
2 files changed
+12
-1
No files matched your search
@@ -204,4 +204,14 @@ mod tests {
|
||||
};
|
||||
assert!(cfg.cache_subdir("x").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn data_inside_repo_is_refused() {
|
||||
let inside = Path::new(env!("CARGO_MANIFEST_DIR")).join("data");
|
||||
let cfg = Config {
|
||||
data_dir: inside,
|
||||
..Default::default()
|
||||
};
|
||||
assert!(cfg.data_subdir("x").is_err());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user