mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Try running all tests using cwd
This commit is contained in:
parent
f4e329f178
commit
c35030af87
@ -18,8 +18,6 @@ pub fn target() -> Result<Target, String> {
|
||||
vec!["-s".to_string(),
|
||||
"BINARYEN=1".to_string(),
|
||||
"-s".to_string(),
|
||||
"BINARYEN_METHOD='native-wasm,interpret-binary'".to_string(),
|
||||
"-s".to_string(),
|
||||
"ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()]);
|
||||
|
||||
let opts = TargetOptions {
|
||||
|
@ -69,6 +69,7 @@ pub fn run(lib_path: &str,
|
||||
}
|
||||
if let Some(cwd) = current_dir {
|
||||
cmd.current_dir(cwd);
|
||||
panic!("Backtrace");
|
||||
}
|
||||
|
||||
let mut process = cmd.spawn()?;
|
||||
|
@ -1546,11 +1546,8 @@ actual:\n\
|
||||
logv(self.config, format!("executing {}", cmdline));
|
||||
cmdline
|
||||
};
|
||||
let working_dir = if self.config.target.contains("emscripten") {
|
||||
Some(self.output_base_name().parent().unwrap().to_str().unwrap().to_owned())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let working_dir =
|
||||
Some(self.output_base_name().parent().unwrap().to_str().unwrap().to_owned());
|
||||
|
||||
let procsrv::Result {
|
||||
out,
|
||||
|
Loading…
Reference in New Issue
Block a user