aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helper/init.go')
-rw-r--r--tests/helper/init.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/helper/init.go b/tests/helper/init.go
new file mode 100644
index 000000000..1f2ee208a
--- /dev/null
+++ b/tests/helper/init.go
@@ -0,0 +1,15 @@
+package helper
+
+import (
+ "log"
+ "os"
+
+ "github.com/ethereum/eth-go/ethlog"
+ "github.com/ethereum/eth-go/ethutil"
+)
+
+func init() {
+ ethlog.AddLogSystem(ethlog.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlog.LogLevel(4)))
+
+ ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
+}