fix emscripten test detection

This commit is contained in:
Tim Neumann 2017-03-04 14:59:49 +01:00
parent 3087a1f39e
commit 4eeede3e0f

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());
}
}