You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"FAILURE: Mismatch found between new $function_name logs and snapshot:"
107
+
echo"Failed: Mismatch found between new $function_name logs and snapshot:"
91
108
echo"$diff_output"
92
109
mismatch_found=true
93
110
else
94
-
echo"SUCCESS: New logs for $function_name match snapshot"
111
+
echo"Ok: New logs for $function_name match snapshot"
95
112
fi
96
113
set -e
97
114
fi
98
115
done
99
116
done
100
117
101
118
if [ "$mismatch_found"=true ];then
102
-
echo"TEST FAILED: A mismatch between newly generated logs and a snapshot was found above. If this is expected, re-run this script with OVERWRITE=true to generate new snapshots"
119
+
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'"
103
120
exit 1
104
121
fi
105
122
106
-
echo"TEST SUCCEEDED: No difference found between new logs and snapshots"
123
+
if [ -n"$UPDATE_SNAPSHOTS" ];then
124
+
echo"SUCCESS: Wrote new snapshots for all functions"
125
+
exit 0
126
+
fi
127
+
128
+
echo"SUCCESS: No difference found between new logs and snapshots"
0 commit comments