Skip to content

Commit

Permalink
chore: skip tests with storage check and return status (#1452)
Browse files Browse the repository at this point in the history
* chore: cargo update

* chore: skip tests with storage check and return error

* return println and clippy

* revert to previous println
  • Loading branch information
rakita authored May 24, 2024
1 parent b005b8d commit 0e1cd99
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ fn skip_test(path: &Path) -> bool {
| "eip1559.json"
| "mergeTest.json"

// Test with some storage check.
| "RevertInCreateInInit_Paris.json"
| "RevertInCreateInInit.json"
| "dynamicAccountOverwriteEmpty.json"
| "dynamicAccountOverwriteEmpty_Paris.json"
| "RevertInCreateInInitCreate2Paris.json"
| "create2collisionStorage.json"
| "RevertInCreateInInitCreate2.json"
| "create2collisionStorageParis.json"
| "InitCollision.json"
| "InitCollisionParis.json"

// These tests are passing, but they take a lot of time to execute so we are going to skip them.
| "loopExp.json"
| "Call50000_sha256.json"
Expand Down
8 changes: 5 additions & 3 deletions bins/revme/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
use revme::cmd::MainCmd;
use revme::cmd::{Error, MainCmd};
use structopt::StructOpt;

pub fn main() {
pub fn main() -> Result<(), Error> {
let cmd = MainCmd::from_args();
if let Err(e) = cmd.run() {
println!("{}", e)
println!("{:?}", e);
return Err(e);
}
Ok(())
}

0 comments on commit 0e1cd99

Please sign in to comment.