about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-05-08 18:04:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-05-08 18:05:08 -0700
commit47742807f7c4078d8f78d752b647239b6b136117 (patch)
tree709b3f272595e64bfea7410ace2d05060a0a44c5 /src/test
parentf8aed3d71a92da8c4a521f4d42b113fbecc15218 (diff)
Ensure tests pass on the beta compiler
Also add a travis matrix entry for emulating the beta tests
Diffstat (limited to 'src/test')
-rw-r--r--src/test/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs
index e2b371c611d..28161e89f35 100644
--- a/src/test/mod.rs
+++ b/src/test/mod.rs
@@ -191,6 +191,10 @@ fn assert_output(source: &Path, expected_filename: &Path) {
 // rustfmt.
 #[test]
 fn idempotence_tests() {
+    match option_env!("CFG_RELEASE_CHANNEL") {
+        None | Some("nightly") => {}
+        _ => return, // these tests require nightly
+    }
     // Get all files in the tests/target directory.
     let files = get_test_files(Path::new("tests/target"), true);
     let (_reports, count, fails) = check_files(files, None);