mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 14:54:45 +00:00
ef_tests: skipped tests and bls_setting support
This commit is contained in:
@@ -6,6 +6,8 @@ pub enum Error {
|
||||
DidntFail(String),
|
||||
/// Failed to parse the test (internal error).
|
||||
FailedToParseTest(String),
|
||||
/// Skipped the test.
|
||||
Skipped,
|
||||
}
|
||||
|
||||
impl Error {
|
||||
@@ -14,6 +16,7 @@ impl Error {
|
||||
Error::NotEqual(_) => "NotEqual",
|
||||
Error::DidntFail(_) => "DidntFail",
|
||||
Error::FailedToParseTest(_) => "FailedToParseTest",
|
||||
Error::Skipped => "Skipped",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +25,14 @@ impl Error {
|
||||
Error::NotEqual(m) => m.as_str(),
|
||||
Error::DidntFail(m) => m.as_str(),
|
||||
Error::FailedToParseTest(m) => m.as_str(),
|
||||
Error::Skipped => panic!(), // "Skipped",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_skipped(&self) -> bool {
|
||||
match self {
|
||||
Error::Skipped => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user