From 9327c30e08371fd44cdd6a028218ee485ca1574f Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Thu, 11 Jul 2024 10:43:16 +0700 Subject: [PATCH] test(GeneralState): skip fewer specs --- bins/revme/src/cmd/statetest/models/spec.rs | 4 ++-- bins/revme/src/cmd/statetest/runner.rs | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bins/revme/src/cmd/statetest/models/spec.rs b/bins/revme/src/cmd/statetest/models/spec.rs index 50903323a2..f61741dcd8 100644 --- a/bins/revme/src/cmd/statetest/models/spec.rs +++ b/bins/revme/src/cmd/statetest/models/spec.rs @@ -20,7 +20,7 @@ pub enum SpecName { Berlin, BerlinToLondonAt5, London, - Merge, + Paris, Shanghai, Cancun, Prague, @@ -43,7 +43,7 @@ impl SpecName { Self::Istanbul => SpecId::ISTANBUL, Self::Berlin => SpecId::BERLIN, Self::London | Self::BerlinToLondonAt5 => SpecId::LONDON, - Self::Merge => SpecId::MERGE, + Self::Paris => SpecId::MERGE, Self::Shanghai => SpecId::SHANGHAI, Self::Cancun => SpecId::CANCUN, Self::Prague => SpecId::PRAGUE, diff --git a/bins/revme/src/cmd/statetest/runner.rs b/bins/revme/src/cmd/statetest/runner.rs index 48c62f35fe..7ef6ab8833 100644 --- a/bins/revme/src/cmd/statetest/runner.rs +++ b/bins/revme/src/cmd/statetest/runner.rs @@ -323,12 +323,10 @@ pub fn execute_test_suite( // post and execution for (spec_name, tests) in unit.post { - if matches!( - spec_name, - SpecName::ByzantiumToConstantinopleAt5 - | SpecName::Constantinople - | SpecName::Unknown - ) { + // Constantinople was immediately extended by Petersburg. + // There isn't any production Constantinople transaction + // so we don't support it and skip right to Petersburg. + if spec_name == SpecName::Constantinople { continue; }