revert change in asserts for failing tests on linux
@@ -35,14 +35,16 @@ fn get_binary_artifact_with_cargo_config() {
expected_path.push("thumbv7m-none-eabi");
expected_path.push("debug");
expected_path.push("binary_cargo_config");
- expected_path = dunce::canonicalize(expected_path).expect("Failed to canonicalize path");
let args = [];
let binary_path =
probe_rs_cli_util::build_artifact(&work_dir, &args).expect("Failed to read artifact path.");
- assert_eq!(binary_path, expected_path);
+ assert_eq!(
+ binary_path,
+ dunce::canonicalize(expected_path).expect("Failed to canonicalize path")
+ );
}
#[test]
@@ -52,14 +54,16 @@ fn get_binary_artifact_with_cargo_config_toml() {
expected_path.push("thumbv7m-none-eabi");
expected_path.push("debug");
expected_path.push("binary_cargo_config_toml");
- expected_path = dunce::canonicalize(expected_path).expect("Failed to canonicalize path");
let args = [];
let binary_path =
probe_rs_cli_util::build_artifact(&work_dir, &args).expect("Failed to read artifact path.");
- assert_eq!(binary_path, expected_path);
+ assert_eq!(
+ binary_path,
+ dunce::canonicalize(expected_path).expect("Failed to canonicalize path")
+ );
}
#[test]
