Try running all tests using cwd

This commit is contained in:
Richard Dodd 2017-05-30 17:52:23 +01:00
parent f4e329f178
commit c35030af87
3 changed files with 3 additions and 7 deletions

View File

@ -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 {

View File

@ -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()?;

View File

@ -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,