File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#![ warn( rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros) ]
10
10
11
+ mod assert_linear;
11
12
pub mod bench_fixture;
12
13
mod fixture;
13
- mod assert_linear;
14
14
15
15
use std:: {
16
16
collections:: BTreeMap ,
@@ -391,7 +391,8 @@ fn main() {
391
391
/// also creates a file at `./target/.slow_tests_cookie` which serves as a flag
392
392
/// that slow tests did run.
393
393
pub fn skip_slow_tests ( ) -> bool {
394
- let should_skip = std:: env:: var ( "CI" ) . is_err ( ) && std:: env:: var ( "RUN_SLOW_TESTS" ) . is_err ( ) ;
394
+ let should_skip = ( std:: env:: var ( "CI" ) . is_err ( ) && std:: env:: var ( "RUN_SLOW_TESTS" ) . is_err ( ) )
395
+ || std:: env:: var ( "SKIP_SLOW_TESTS" ) . is_ok ( ) ;
395
396
if should_skip {
396
397
eprintln ! ( "ignoring slow test" ) ;
397
398
} else {
@@ -475,7 +476,7 @@ pub fn ensure_file_contents(file: &Path, contents: &str) {
475
476
pub fn try_ensure_file_contents ( file : & Path , contents : & str ) -> Result < ( ) , ( ) > {
476
477
match std:: fs:: read_to_string ( file) {
477
478
Ok ( old_contents) if normalize_newlines ( & old_contents) == normalize_newlines ( contents) => {
478
- return Ok ( ( ) )
479
+ return Ok ( ( ) ) ;
479
480
}
480
481
_ => ( ) ,
481
482
}
You can’t perform that action at this time.
0 commit comments