Mercurial > python-compiler.rs
changeset 95:6569eea3db23
Ignore tests which don’t have the .py extension.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 28 Jun 2016 01:36:14 +0100 |
parents | e0368bea06a6 |
children | 20c1c9d7803d |
files | build.rs |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/build.rs +++ b/build.rs @@ -9,6 +9,9 @@ fn gen_parse_file_tests(out_dir: String) for file in read_dir("tests/test_parse_files").unwrap() { let path = file.unwrap().path(); + if path.extension().unwrap() != "py" { + continue; + } let test_name = path.file_stem().unwrap().to_str().unwrap(); let _ = f.write_all(format!("#[test] fn {}() {{