diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 21:21:13 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 148806a698d1e65894cc00fcf855fa5bf062277d (patch) | |
tree | bbc7680ce1f6e1a9b27b56176d46592df1015eff | |
parent | b66ec024e7d0f85300b0c72bdc629564d3e3bd24 (diff) | |
download | dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar.gz dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar.bz2 dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar.lz dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar.xz dexon-148806a698d1e65894cc00fcf855fa5bf062277d.tar.zst dexon-148806a698d1e65894cc00fcf855fa5bf062277d.zip |
test: save log to unique dir to preserve logs accross tests
-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 |