File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,21 @@ pub fn run_test(path: &Path) -> Result<(), Error> {
81
81
} else {
82
82
Some ( CodeType :: ReturnOrStop )
83
83
} ;
84
- let test_result = test_vector. results . get ( "Osaka" ) ;
84
+ // In future this can be generalized to cover multiple forks, Not just Osaka.
85
+ let Some ( test_result) = test_vector. results . get ( "Osaka" ) else {
86
+ // if test does not have a result that we can compare to, we skip it
87
+ println ! ( "Test without result: {} - {}" , name, vector_name) ;
88
+ continue ;
89
+ } ;
85
90
let res = validate_raw_eof_inner ( test_vector. code . clone ( ) , kind) ;
86
- if test_result. map ( |r| r . result ) . unwrap_or ( res . is_ok ( ) ) != res. is_ok ( ) {
91
+ if test_result. result != res. is_ok ( ) {
87
92
println ! (
88
93
"\n Test failed: {} - {}\n result:{:?}\n revm err_result:{:#?}\n Expected exception:{:?}\n bytes:{:?}\n " ,
89
94
name,
90
95
vector_name,
91
- test_result. unwrap ( ) . result,
96
+ test_result. result,
92
97
res. as_ref( ) . err( ) ,
93
- test_result. unwrap ( ) . exception,
98
+ test_result. exception,
94
99
test_vector. code
95
100
) ;
96
101
* types_of_error
Original file line number Diff line number Diff line change @@ -342,12 +342,7 @@ pub fn execute_test_suite(
342
342
continue ;
343
343
}
344
344
345
- // Enable EOF in Prague tests.
346
- cfg. spec = if spec_name == SpecName :: Prague {
347
- SpecId :: OSAKA
348
- } else {
349
- spec_name. to_spec_id ( )
350
- } ;
345
+ cfg. spec = spec_name. to_spec_id ( ) ;
351
346
352
347
if cfg. spec . is_enabled_in ( SpecId :: MERGE ) && block. prevrandao . is_none ( ) {
353
348
// If spec is merge and prevrandao is not set, set it to default
You can’t perform that action at this time.
0 commit comments