diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 21:21:13 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:56 +0800 |
commit | ab3d4ad2199a5904d1dd1c522944ef13e3632a2f (patch) | |
tree | 0ec505ed80fc384e941e539b3d6c5d8a37e13aff | |
parent | b1e9bd2f8d18a2a31ccf5bdbdc51e6e1b67a27ba (diff) | |
download | dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar.gz dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar.bz2 dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar.lz dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar.xz dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.tar.zst dexon-ab3d4ad2199a5904d1dd1c522944ef13e3632a2f.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 |