Avoid running compile-failure tests in CI
This commit is contained in:
parent
52e635af6e
commit
ed25390917
|
@ -20,7 +20,8 @@
|
|||
|
||||
#[test]
|
||||
fn compile_error() {
|
||||
std::env::set_var("SAILFISH_INTEGRATION_TESTS", "1");
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/fails/*.rs");
|
||||
if std::env::var("SAILFISH_INTEGRATION_TESTS").map_or(false, |v| v == "1") {
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/fails/*.rs");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue