Ignore create_dir errors in tests

This commit is contained in:
Johann 2016-02-18 08:13:59 +01:00
parent 723da29554
commit 907ac402f0

View file

@ -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);