Skip to content

Commit

Permalink
Bugfix: Pass verbosity to the harness and sandbox (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaffi authored Aug 23, 2022
1 parent dc9a4b7 commit a0e5eb2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test-harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -28,12 +30,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

## Copy feature files into the project resources
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"
if [[ $VERBOSE_HARNESS == 1 ]]; then
Expand Down Expand Up @@ -62,7 +65,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 ""
Expand Down

0 comments on commit a0e5eb2

Please sign in to comment.