diff --git a/test-harness.sh b/test-harness.sh index dec7d15f..910562de 100755 --- a/test-harness.sh +++ b/test-harness.sh @@ -15,6 +15,8 @@ set +a rootdir=$(dirname "$0") pushd "$rootdir" +echo "$THIS: VERBOSE_HARNESS=$VERBOSE_HARNESS" + ## Reset test harness if [ -d "$SDK_TESTING_HARNESS" ]; then pushd "$SDK_TESTING_HARNESS" @@ -27,12 +29,13 @@ fi git clone --depth 1 --single-branch --branch "$SDK_TESTING_BRANCH" "$SDK_TESTING_URL" "$SDK_TESTING_HARNESS" - +echo "$THIS: OVERWRITE_TESTING_ENVIRONMENT=$OVERWRITE_TESTING_ENVIRONMENT" if [[ $OVERWRITE_TESTING_ENVIRONMENT == 1 ]]; then echo "$THIS: OVERWRITE replaced $SDK_TESTING_HARNESS/.env with $ENV_FILE:" cp "$ENV_FILE" "$SDK_TESTING_HARNESS"/.env fi +echo "$THIS: REMOVE_LOCAL_FEATURES=$REMOVE_LOCAL_FEATURES" ## Copy feature files into the project resources if [[ $REMOVE_LOCAL_FEATURES == 1 ]]; then echo "$THIS: OVERWRITE wipes clean $TEST_DIR/features" @@ -51,7 +54,11 @@ echo "$THIS: seconds it took to get to end of cloning and copying: $(($(date "+% ## Start test harness environment pushd "$SDK_TESTING_HARNESS" -./scripts/up.sh + +[[ "$VERBOSE_HARNESS" = 1 ]] && V_FLAG="-v" || V_FLAG="" +echo "$THIS: standing up harnness with command [./up.sh $V_FLAG]" +./scripts/up.sh "$V_FLAG" + popd echo "$THIS: seconds it took to finish testing sdk's up.sh: $(($(date "+%s") - START))s" echo ""