Skip to content

Commit 8d7b0c6

Browse files
committed
Clarify instructions for re-running
1 parent 1ced36e commit 8d7b0c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/run_integration_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Usage:
3+
# Usage - run commands from repo root:
44
# To check if new changes to the layer cause changes to any snapshots:
55
# BUILD_LAYERS=true DD_API_KEY=XXXX aws-vault exec sandbox-account-admin -- ./scripts/run_integration_tests
66
# To regenerate snapshots:
@@ -37,7 +37,7 @@ if [ -n "$BUILD_LAYERS" ]; then
3737
echo "Building layers that will be deployed with our test functions"
3838
source $scripts_dir/build_layers.sh
3939
else
40-
echo "Not building layers, ensure they've already been built or re-run with 'REBUILD_LAYERS=true ./scripts/run_integration_tests.sh'"
40+
echo "Not building layers, ensure they've already been built or re-run with 'REBUILD_LAYERS=true DD_API_KEY=XXXX ./scripts/run_integration_tests.sh'"
4141
fi
4242

4343
cd $integration_tests_dir
@@ -143,7 +143,7 @@ done
143143

144144
if [ "$mismatch_found" = true ]; then
145145
echo "FAILURE: A mismatch between new data and a snapshot was found and printed above."
146-
echo "If the change is expected, generate new snapshots by running 'UPDATE_SNAPSHOTS=true ./scripts/run_integration_tests.sh'"
146+
echo "If the change is expected, generate new snapshots by running 'UPDATE_SNAPSHOTS=true DD_API_KEY=XXXX ./scripts/run_integration_tests.sh'"
147147
exit 1
148148
fi
149149

0 commit comments

Comments
 (0)