mirror of
https://github.com/cobalt-org/cobalt.rs
synced 2024-11-15 08:27:15 +00:00
Ignore create_dir errors in tests
This commit is contained in:
parent
723da29554
commit
907ac402f0
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ fn run_test(name: &str) -> Result<(), cobalt::Error> {
|
|||
config.source = format!("tests/fixtures/{}/", name);
|
||||
config.dest = format!("tests/tmp/{}/", name);
|
||||
|
||||
fs::create_dir_all(&config.dest).expect("Create dir failed");
|
||||
// try to create the target directory, ignore errors
|
||||
fs::create_dir_all(&config.dest).is_err();
|
||||
|
||||
let result = cobalt::build(&config);
|
||||
|
||||
|
|
Loading…
Reference in a new issue