restore sth

This commit is contained in:
bitgaoshu 2022-06-25 10:25:56 +08:00
parent e3b1303c4f
commit 82c1b313bc

View File

@ -389,7 +389,7 @@ fn main() {
/// also creates a file at `./target/.slow_tests_cookie` which serves as a flag
/// that slow tests did run.
pub fn skip_slow_tests() -> bool {
let should_skip = std::env::var("RUN_SLOW_TESTS").is_err();
let should_skip = std::env::var("CI").is_err() && std::env::var("RUN_SLOW_TESTS").is_err();
if should_skip {
eprintln!("ignoring slow test");
} else {