Skip to content

Commit

Permalink
Fix windows test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Mar 2, 2022
1 parent db2e3ae commit d5e84a5
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions testing/execution_engine_integration/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,21 @@ mod execution_engine;
mod genesis_json;
mod test_rig;

use execution_engine::Geth;
use test_rig::TestRig;

/// Set to `false` to send logs to the console during tests. Logs are useful when debugging.
const SUPPRESS_LOGS: bool = false;

fn main() {
run_tests()
}
if cfg!(windows) {
panic!("windows is not supported, only linux");
}

#[cfg(not(target_family = "windows"))]
fn run_tests() {
use execution_engine::Geth;
use test_rig::TestRig;
test_geth()
}

fn test_geth() {
build_geth::build();

TestRig::new(Geth).perform_tests_blocking();
}

#[cfg(target_family = "windows")]
fn run_tests() {
// Tests are not supported on Windows. All the build scripts assume Linux at this point.
}

0 comments on commit d5e84a5

Please sign in to comment.