Rollup merge of #40259 - TimNN:fix-emscripten-tests, r=alexcrichton

Fix emscripten test detection

Without this change `rustbuild` will attempt to run `.js.map` files (if they exist) resulting in lots of sadness.

r? @alexcrichton
This commit is contained in:
Alex Crichton 2017-03-10 16:51:22 -06:00
commit 5c715dee38
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ fn find_tests(dir: &Path,
let filename = e.file_name().into_string().unwrap();
if (target.contains("windows") && filename.ends_with(".exe")) ||
(!target.contains("windows") && !filename.contains(".")) ||
(target.contains("emscripten") && filename.contains(".js")){
(target.contains("emscripten") && filename.ends_with(".js")) {
dst.push(e.path());
}
}