Skip to content

Commit be881ab

Browse files
committed
Edit script for readability
1 parent 44c9d2a commit be881ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/run_integration_tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ for handler_name in "${LAMBDA_HANDLERS[@]}"; do
5757
function_name="${handler_name}_${runtime}"
5858
# Invoke function once for each input event
5959
for input_event_file in "${input_event_files[@]}"; do
60-
echo "input_event_file=$input_event_file"
61-
# Get event name without trailing ".json" so we can build the snapshot name
60+
# Get event name without trailing ".json" so we can build the snapshot file name
6261
input_event_name=$(echo "$input_event_file" | sed "s/.json//")
6362
# Return value snapshot file format is snapshots/return_values/{handler}_{runtime}_{input-event}
6463
snapshot_path="./snapshots/return_values/${function_name}_${input_event_name}.json"
@@ -78,7 +77,7 @@ for handler_name in "${LAMBDA_HANDLERS[@]}"; do
7877
echo "$diff_output"
7978
mismatch_found=true
8079
else
81-
echo "Ok: Return value for $function_name matches snapshot"
80+
echo "Ok: Return value for $function_name with $input_event_name event matches snapshot"
8281
fi
8382
fi
8483
done
@@ -139,7 +138,8 @@ for handler_name in "${LAMBDA_HANDLERS[@]}"; do
139138
done
140139

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

0 commit comments

Comments
 (0)