mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/evm: review fixes
This commit is contained in:
parent
7c34200d74
commit
092b99f49f
2 changed files with 4 additions and 7 deletions
|
|
@ -23,12 +23,12 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"slices"
|
"slices"
|
||||||
"sort"
|
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/core"
|
"github.com/ethereum/go-ethereum/core"
|
||||||
"github.com/ethereum/go-ethereum/core/rawdb"
|
"github.com/ethereum/go-ethereum/core/rawdb"
|
||||||
"github.com/ethereum/go-ethereum/tests"
|
"github.com/ethereum/go-ethereum/tests"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
"golang.org/x/exp/maps"
|
||||||
)
|
)
|
||||||
|
|
||||||
var blockTestCommand = &cli.Command{
|
var blockTestCommand = &cli.Command{
|
||||||
|
|
@ -80,11 +80,8 @@ func runBlockTest(ctx *cli.Context, fname string) ([]testResult, error) {
|
||||||
tracer := tracerFromFlags(ctx)
|
tracer := tracerFromFlags(ctx)
|
||||||
|
|
||||||
// Pull out keys to sort and ensure tests are run in order.
|
// Pull out keys to sort and ensure tests are run in order.
|
||||||
var keys []string
|
keys := maps.Keys(tests)
|
||||||
for key := range tests {
|
slices.Sort(keys)
|
||||||
keys = append(keys, key)
|
|
||||||
}
|
|
||||||
sort.Strings(keys)
|
|
||||||
|
|
||||||
// Run all the tests.
|
// Run all the tests.
|
||||||
var results []testResult
|
var results []testResult
|
||||||
|
|
|
||||||
|
|
@ -189,8 +189,8 @@ var (
|
||||||
var traceFlags = []cli.Flag{
|
var traceFlags = []cli.Flag{
|
||||||
TraceFlag,
|
TraceFlag,
|
||||||
TraceFormatFlag,
|
TraceFormatFlag,
|
||||||
TraceDisableMemoryFlag,
|
|
||||||
TraceDisableStackFlag,
|
TraceDisableStackFlag,
|
||||||
|
TraceDisableMemoryFlag,
|
||||||
TraceDisableStorageFlag,
|
TraceDisableStorageFlag,
|
||||||
TraceDisableReturnDataFlag,
|
TraceDisableReturnDataFlag,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue