Skip to content

Commit

Permalink
test: don't fail on canonicalize
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Feb 12, 2024
1 parent 79d2de6 commit 1fd9cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/test-utils/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ impl TestProject {
/// Returns the path to the forge executable.
pub fn forge_bin(&self) -> Command {
let forge = self.exe_root.join("../forge").with_extension(env::consts::EXE_SUFFIX);
let forge = forge.canonicalize().unwrap();
let forge = forge.canonicalize().unwrap_or_else(|_| forge.clone());
let mut cmd = Command::new(forge);
cmd.current_dir(self.inner.root());
// disable color output for comparisons
Expand All @@ -625,7 +625,7 @@ impl TestProject {
/// Returns the path to the cast executable.
pub fn cast_bin(&self) -> Command {
let cast = self.exe_root.join("../cast").with_extension(env::consts::EXE_SUFFIX);
let cast = cast.canonicalize().unwrap();
let cast = cast.canonicalize().unwrap_or_else(|_| cast.clone());
let mut cmd = Command::new(cast);
// disable color output for comparisons
cmd.env("NO_COLOR", "1");
Expand Down

0 comments on commit 1fd9cee

Please sign in to comment.