Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 19, 2024
1 parent 16749a9 commit 653a51a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions integration_tests/tests/cucumber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn try_flush_stdout(buffer: &Arc<Mutex<Vec<u8>>>) {
info!(
target: LOG_TARGET_STDOUT,
"{}",
str::from_utf8(mutex).unwrap()
str::from_utf8(mutex).unwrap_or("")
);
mutex.clear();
}
Expand Down Expand Up @@ -126,11 +126,11 @@ fn main() {
let crate_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let log_dir = crate_root.join("log");
let test_run_dir = crate_root.join(format!("tests/temp/cucumber_{}/logs", process::id()));
fs::create_dir_all(&test_run_dir).unwrap();

for entry in fs::read_dir(log_dir).unwrap() {
let file = entry.unwrap();
fs::copy(file.path(), test_run_dir.join(file.file_name())).unwrap();
fs::remove_file(file.path()).unwrap();
}
// fs::create_dir_all(&test_run_dir).unwrap();
//
// for entry in fs::read_dir(log_dir).unwrap() {
// let file = entry.unwrap();
// fs::copy(file.path(), test_run_dir.join(file.file_name())).unwrap();
// fs::remove_file(file.path()).unwrap();
// }
}

0 comments on commit 653a51a

Please sign in to comment.