cmd/evm: propagate statetest stdin scanner errors

The stdin scanner loop ignores scanner.Err(), so read errors (e.g., underlying IO issues or overly long lines) will be silently swallowed and reported as success. After the scan loop, check scanner.Err() and return it if non-nil.
This commit is contained in:
Daniel Liu 2026-04-17 16:37:11 +08:00
parent 89c1c16a46
commit bc238a02b3

View file

@ -92,6 +92,9 @@ func stateTestCmd(ctx *cli.Context) error {
}
report(ctx, results)
}
if err := scanner.Err(); err != nil {
return err
}
return nil
}