cmd/evm: adds ability to run individual state test file (#14998)

* cmd/evm: adds ability to run individual state test file

* cmd/evm: Fix statetest runner to be more json friendly

* cmd/evm, tests: minor polishes, dump state on fail
This commit is contained in:
Martin Holst Swende
2017-09-05 11:24:26 +02:00
committed by Péter Szilágyi
parent 504278e839
commit 8cab3ab435
4 changed files with 128 additions and 7 deletions

View File

@ -50,7 +50,8 @@ func TestState(t *testing.T) {
t.Skip("constantinople not supported yet")
}
withTrace(t, test.gasLimit(subtest), func(vmconfig vm.Config) error {
return st.checkFailure(t, name, test.Run(subtest, vmconfig))
_, err := test.Run(subtest, vmconfig)
return st.checkFailure(t, name, err)
})
})
}