Skip to content

Commit

Permalink
Rollup merge of rust-lang#40259 - TimNN:fix-emscripten-tests, r=alexc…
Browse files Browse the repository at this point in the history
…richton

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
  • Loading branch information
Ariel Ben-Yehuda authored Mar 10, 2017
2 parents 8a59355 + 4eeede3 commit 8f3c1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 8f3c1d2

Please sign in to comment.