File tree 2 files changed +1213
-2
lines changed 2 files changed +1213
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,16 @@ if [[ -d lib/runtime/dart ]] ; then
13
13
fi
14
14
15
15
# TODO(jmesserly): for now we're suppressing errors in SDK compilation
16
- dart -c bin/devc.dart --no-source-maps --sdk-check --force-compile -l shout \
17
- --dart-sdk test/generated_sdk -o lib/runtime/ dart:core || true
16
+ dart -c bin/devc.dart --no-source-maps --sdk-check --force-compile -l warning \
17
+ --dart-sdk test/generated_sdk -o lib/runtime/ dart:core \
18
+ > test/generated_sdk/sdk_errors.txt || true
19
+
20
+ if ! diff tool/sdk_expected_errors.txt test/generated_sdk/sdk_errors.txt ; then
21
+ echo
22
+ echo ' SDK errors have changed. To update expectations, run:'
23
+ echo ' $ cp test/generated_sdk/sdk_errors.txt tool/sdk_expected_errors.txt'
24
+ exit 1
25
+ fi
18
26
19
27
if [[ ! -f lib/runtime/dart/core.js ]] ; then
20
28
echo ' core.js not found, assuming build failed.'
You can’t perform that action at this time.
0 commit comments