mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 23:04:53 +00:00
Pretty-print EIP-3076 tests (#1977)
## Proposed Changes * Pretty-print the EIP-3076 tests to match https://github.com/eth2-clients/slashing-protection-interchange-tests/pull/4 * Move the `curl` invocation that downloads the tests to the test executor, removing the build script (closes #1982)
This commit is contained in:
@@ -2,7 +2,19 @@ use slashing_protection::interchange_test::MultiTestCase;
|
||||
use std::fs::File;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn download_tests() {
|
||||
let make_output = std::process::Command::new("make")
|
||||
.current_dir(std::env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
.output()
|
||||
.expect("need `make` to succeed to download and untar slashing protection tests");
|
||||
if !make_output.status.success() {
|
||||
eprintln!("{}", String::from_utf8_lossy(&make_output.stderr));
|
||||
panic!("Running `make` for slashing protection tests failed, see above");
|
||||
}
|
||||
}
|
||||
|
||||
fn test_root_dir() -> PathBuf {
|
||||
download_tests();
|
||||
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("interchange-tests")
|
||||
.join("tests")
|
||||
|
||||
Reference in New Issue
Block a user