mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
cmd/evm: skip empty lines in stdin batch mode
`blockrunner` and `staterunner` returned on the first empty stdin line, silently skipping the rest of the batch. Switch to `continue` so all filenames get processed, matching `cmd/rlpdump`.
This commit is contained in:
parent
f0b21fa110
commit
9b5f512c41
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ func blockTestCmd(ctx *cli.Context) error {
|
|||
for scanner.Scan() {
|
||||
fname := scanner.Text()
|
||||
if len(fname) == 0 {
|
||||
return nil
|
||||
continue
|
||||
}
|
||||
results, err := runBlockTest(ctx, fname)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ func stateTestCmd(ctx *cli.Context) error {
|
|||
for scanner.Scan() {
|
||||
fname := scanner.Text()
|
||||
if len(fname) == 0 {
|
||||
return nil
|
||||
continue
|
||||
}
|
||||
results, err := runStateTest(ctx, fname)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue