aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test_util.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 17:38:23 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 17:38:23 +0800
commit0743243dce05c38c1f4949e44467d20a22a1f743 (patch)
treefdb2b2dd419da47bb314f230957f79a9d01353d6 /tests/state_test_util.go
parenta9659e6dcf1f1584e155825d4422eb005ff38c21 (diff)
downloadgo-tangerine-0743243dce05c38c1f4949e44467d20a22a1f743.tar.gz
go-tangerine-0743243dce05c38c1f4949e44467d20a22a1f743.tar.zst
go-tangerine-0743243dce05c38c1f4949e44467d20a22a1f743.zip
Add --skip option to CLI
Disassociates hardcoded tests to skip when running via CLI. Tests still skipped when running `go test`
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
}