diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 21:21:13 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 33db8ae235b072d4b6483ea9fea68e19e5383dce (patch) | |
tree | 669c8ebe642ad6e1384bda5cbdbb9cd0169eace4 /test/run_test.sh | |
parent | 5bd42d357da00298fa47bd8c672721195cf61d9a (diff) | |
download | go-tangerine-33db8ae235b072d4b6483ea9fea68e19e5383dce.tar.gz go-tangerine-33db8ae235b072d4b6483ea9fea68e19e5383dce.tar.zst go-tangerine-33db8ae235b072d4b6483ea9fea68e19e5383dce.zip |
test: save log to unique dir to preserve logs accross tests
Diffstat (limited to 'test/run_test.sh')
-rwxr-xr-x | test/run_test.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/run_test.sh b/test/run_test.sh index ca2c391a0..91742ca4b 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -6,11 +6,14 @@ pkill -9 -f gdex bootnode -nodekey bootnode.key --verbosity=9 > bootnode.log 2>&1 & +logsdir=$PWD/log-$(date '+%Y-%m-%d-%H:%M:%S') +mkdir $logsdir + for i in $(seq 0 3); do datadir=$PWD/Dexon.$i rm -rf $datadir $GDEX --datadir=$datadir init genesis.json - $GDEX --verbosity=4 --gcmode=archive --datadir=$datadir --nodekey=test$i.nodekey --port=$((28000 + $i)) --rpc --rpcaddr=0.0.0.0 --rpcport=$((8545 + $i * 2)) --rpcapi=eth,net,web3,debug --ws --wsapi=eth,net,web3,debug --wsaddr=0.0.0.0 --wsport=$((8546 + $i * 2)) --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" > gdex.$i.log 2>&1 & + $GDEX --verbosity=4 --gcmode=archive --datadir=$datadir --nodekey=test$i.nodekey --port=$((28000 + $i)) --rpc --rpcaddr=0.0.0.0 --rpcport=$((8545 + $i * 2)) --rpcapi=eth,net,web3,debug --ws --wsapi=eth,net,web3,debug --wsaddr=0.0.0.0 --wsport=$((8546 + $i * 2)) --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" > $logsdir/gdex.$i.log 2>&1 & done -tail -f gdex.*.log +tail -f $logsdir/gdex.*.log |