Fix the use of tests/simulation/run_node.sh

This commit is contained in:
Zahary Karadjov 2019-07-01 15:36:01 +03:00
parent 95dea4c165
commit c98426586e
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,6 @@ set -eu
# Set a default value for the env vars usually supplied by nimbus Makefile
export NUM_VALIDATORS=${VALIDATORS:-100}
export NUM_NODES=${NODES:-9}
export NUM_MISSING_NODES=${MISSING_NODES:-1}
cd "$SIM_ROOT"
mkdir -p "$SIMULATION_DIR"
mkdir -p "$VALIDATORS_DIR"

View File

@ -14,6 +14,10 @@ cd - &>/dev/null
: ${SKIP_BUILDS:=""}
: ${BUILD_OUTPUTS_DIR:="$GIT_ROOT/build"}
NUM_VALIDATORS=${VALIDATORS:-100}
NUM_NODES=${NODES:-9}
NUM_MISSING_NODES=${MISSING_NODES:-1}
SIMULATION_DIR="${SIM_ROOT}/data"
VALIDATORS_DIR="${SIM_ROOT}/validators"
SNAPSHOT_FILE="${SIMULATION_DIR}/state_snapshot.json"