Fix 'dart --enable-asserts' typo in license check script (flutter/engine#55082)
`dart -enable-asserts` should be `--enable-asserts` with two `-`s. License script is complaining: ``` Could not find an option with short name "-e". ``` https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737159074465654417/+/u/test:_licenses_check/stdout Typo from: https://github.com/flutter/engine/pull/54845/files#diff-0845c01add635bd6976b8aefd761c14899002c53f9d0ff596cc7f4667cd49f71R84 Fixes https://github.com/flutter/flutter/issues/154942 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
@@ -81,7 +81,7 @@ dart --version
|
||||
# Runs the tests for the license script.
|
||||
function run_tests() (
|
||||
cd "$SRC_DIR/flutter/tools/licenses"
|
||||
find . -name "*_test.dart" | xargs -n 1 dart -enable-asserts
|
||||
find . -name "*_test.dart" | xargs -n 1 dart --enable-asserts
|
||||
)
|
||||
|
||||
# Collects the license information from the repo.
|
||||
|
||||
Reference in New Issue
Block a user