Skip to content

Commit f092053

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#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
2 parents be28ee7 + 4eeede3 commit f092053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ fn find_tests(dir: &Path,
550550
let filename = e.file_name().into_string().unwrap();
551551
if (target.contains("windows") && filename.ends_with(".exe")) ||
552552
(!target.contains("windows") && !filename.contains(".")) ||
553-
(target.contains("emscripten") && filename.contains(".js")){
553+
(target.contains("emscripten") && filename.ends_with(".js")) {
554554
dst.push(e.path());
555555
}
556556
}

0 commit comments

Comments
 (0)