Skip to content

Commit

Permalink
set dotnet path
Browse files Browse the repository at this point in the history
  • Loading branch information
yowl committed Oct 30, 2023
1 parent 2101dda commit 2650ef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/runtime/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,10 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
fs::copy(path, out_dir.join(file_name.to_str().unwrap()))?;

let dotnet_root_env = "DOTNET_ROOT";
let mut dotnet_path = "";
let mut dotnet_path: String;
match env::var(dotnet_root_env) {
Ok(val) => dotnet_path = &format!("{}/", dotnet_root_env),
Err(e) => {}
Ok(val) => dotnet_path = format!("{}/", val),
Err(_e) => dotnet_path = "".into(),
}
let mut cmd = Command::new(format!("{}dotnet", dotnet_path));

Expand Down

0 comments on commit 2650ef0

Please sign in to comment.