Restore the ability to run tests/simulation/start.sh manually

This commit is contained in:
Zahary Karadjov 2019-10-28 15:28:45 +02:00
parent 1bcd045a2f
commit 43b70c0330
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
3 changed files with 9 additions and 3 deletions

View File

@ -1,9 +1,9 @@
import
# Standard library
net, sequtils, tables, osproc, random, strutils, times, strformat,
os, net, sequtils, tables, osproc, random, strutils, times, strformat,
# Nimble packages
stew/shims/os, stew/[objects, bitseqs],
stew/[objects, bitseqs],
chronos, chronicles, confutils, metrics,
json_serialization/std/[options, sets], serialization/errors,
eth/trie/db, eth/trie/backends/rocksdb_backend, eth/async_utils,

View File

@ -40,6 +40,6 @@ $BEACON_NODE_BIN \
--depositContractAddress=$DEPOSIT_CONTRACT_ADDRESS \
--metricsServer=true \
--metricsServerAddress="127.0.0.1" \
--metricsServerPort="$(( $BASE_METRICS_PORT + $NODE_ID ))"
--metricsServerPort="$(( $BASE_METRICS_PORT + $NODE_ID ))" \
"$@"

View File

@ -86,6 +86,12 @@ scrape_configs:
static_configs:
EOF
PROCESS_DASHBOARD_BIN="${SIM_ROOT}/../../build/process_dashboard"
if [ ! -f "$PROCESS_DASHBOARD_BIN" ]; then
nim c -d:release --outdir:build tests/simulation/process_dashboard.nim
fi
# use the exported Grafana dashboard for a single node to create one for all nodes
"${SIM_ROOT}/../../build/process_dashboard" \
--nodes=${NUM_NODES} \