Disable self_tests on beta channel

This commit is contained in:
topecongiro 2019-03-17 12:21:57 +09:00
parent 9d281b44c3
commit bde77714e6

View file

@ -231,6 +231,10 @@ fn idempotence_tests() {
// no warnings are emitted.
#[test]
fn self_tests() {
match option_env!("CFG_RELEASE_CHANNEL") {
None | Some("nightly") => {}
_ => return, // these tests require nightly
}
let mut files = get_test_files(Path::new("tests"), false);
let bin_directories = vec!["cargo-fmt", "git-rustfmt", "bin", "format-diff"];
for dir in bin_directories {