aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test_util.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/state_test_util.go')
-rw-r--r--tests/state_test_util.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index 577935dfa..e9abad788 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -16,26 +16,26 @@ import (
"github.com/ethereum/go-ethereum/logger/glog"
)
-func RunStateTestWithReader(r io.Reader) error {
+func RunStateTestWithReader(r io.Reader, skipTests []string) error {
tests := make(map[string]VmTest)
if err := readJson(r, &tests); err != nil {
return err
}
- if err := runStateTests(tests); err != nil {
+ if err := runStateTests(tests, skipTests); err != nil {
return err
}
return nil
}
-func RunStateTest(p string) error {
+func RunStateTest(p string, skipTests []string) error {
tests := make(map[string]VmTest)
if err := readJsonFile(p, &tests); err != nil {
return err
}
- if err := runStateTests(tests); err != nil {
+ if err := runStateTests(tests, skipTests); err != nil {
return err
}
@@ -43,9 +43,9 @@ func RunStateTest(p string) error {
}
-func runStateTests(tests map[string]VmTest) error {
- skipTest := make(map[string]bool, len(StateSkipTests))
- for _, name := range StateSkipTests {
+func runStateTests(tests map[string]VmTest, skipTests []string) error {
+ skipTest := make(map[string]bool, len(skipTests))
+ for _, name := range skipTests {
skipTest[name] = true
}