Skip to content

Commit

Permalink
add path condition to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
njelich committed Mar 11, 2024
1 parent dca0eb8 commit ab28cd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ fn abs_path(rpath: &str) -> String {
let rpath = match std::env::consts::ARCH {
"aarch64" => rpath.replace("bin", "arm_bin"),
"riscv64" => rpath.replace("bin", "riscv_bin"),
_ => rpath.to_string(),
_ => {
if std::env::consts::OS == "macos" {
rpath.replace("bin", "mac_bin")
} else {
rpath.to_string()
}
}
};
let project_dir = PathBuf::from(*PROJECT_DIR.read().unwrap());
let mut path = PathBuf::new();
Expand Down

0 comments on commit ab28cd9

Please sign in to comment.