Skip to content

Commit

Permalink
Fix pipeline by creating tests data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
thled committed Jul 6, 2021
1 parent 7ac1af1 commit a1f3af3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ fn create_config(source: &str, new_name: &str) -> Result<Config, &'static str> {
fn change_dir_to_tests_data() -> Result<(), io::Error> {
let cwd = env::current_dir()?;
if !cwd.ends_with("tests/data") {
env::set_current_dir(format!("{}/tests/data", cwd.to_string_lossy()))?;
let cd_target = format!("{}/tests/data", cwd.to_string_lossy());
fs::create_dir_all(&cd_target)?;
env::set_current_dir(&cd_target)?;
}
Ok(())
}
Expand Down

0 comments on commit a1f3af3

Please sign in to comment.