diff --git a/.evergreen/run-granular-benchmarks.sh b/.evergreen/run-granular-benchmarks.sh index 52960320..81ae7619 100644 --- a/.evergreen/run-granular-benchmarks.sh +++ b/.evergreen/run-granular-benchmarks.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash +if [[ -z "${PROJECT_DIRECTORY}" ]]; then echo "PROJECT_DIRECTORY is unset" && exit 1; fi source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh" + set -o xtrace WARMUP=$WARMUP ITERATIONS=$ITERATIONS -WARMUP=$WARMUP ITERATIONS=$ITERATIONS npm run check:granular-bench +WARMUP=$WARMUP ITERATIONS=$ITERATIONS LIBRARY=$PROJECT_DIRECTORY npm run check:granular-bench diff --git a/.evergreen/run-spec-benchmarks.sh b/.evergreen/run-spec-benchmarks.sh index 5ce90833..8de484f1 100644 --- a/.evergreen/run-spec-benchmarks.sh +++ b/.evergreen/run-spec-benchmarks.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +if [[ -z "${PROJECT_DIRECTORY}" ]]; then echo "PROJECT_DIRECTORY is unset" && exit 1; fi source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh" -npm run check:spec-bench +LIBRARY=$PROJECT_DIRECTORY npm run check:spec-bench