Commit 5f20f834 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Always run the flutter tool in checked mode. (#11069)

(Needs https://github.com/dart-lang/sdk/issues/28519)
parent 7ba1879b
...@@ -65,8 +65,10 @@ if [ ! -d "$FLUTTER_ROOT/.git" ]; then ...@@ -65,8 +65,10 @@ if [ ! -d "$FLUTTER_ROOT/.git" ]; then
exit 1 exit 1
fi fi
FLUTTER_TOOL_ARGS="--checked"
# To debug the tool, you can uncomment the following line to enable checked mode and set an observatory port: # To debug the tool, you can uncomment the following line to enable checked mode and set an observatory port:
# FLUTTER_TOOL_ARGS="--observe=65432 --checked" # FLUTTER_TOOL_ARGS="$FLUTTER_TOOL_ARGS --observe=65432"
( (
if hash flock 2>/dev/null; then if hash flock 2>/dev/null; then
......
...@@ -39,8 +39,10 @@ IF NOT EXIST "%flutter_root%\.git" ( ...@@ -39,8 +39,10 @@ IF NOT EXIST "%flutter_root%\.git" (
REM Ensure that bin/cache exists. REM Ensure that bin/cache exists.
IF NOT EXIST "%cache_dir%" MKDIR "%cache_dir%" IF NOT EXIST "%cache_dir%" MKDIR "%cache_dir%"
SET FLUTTER_TOOL_ARGS="--checked"
REM To debug the tool, you can uncomment the following line to enable checked mode and set an observatory port: REM To debug the tool, you can uncomment the following line to enable checked mode and set an observatory port:
REM SET FLUTTER_TOOL_ARGS="--observe=65432 --checked" REM SET FLUTTER_TOOL_ARGS="%FLUTTER_TOOL_ARGS% --observe=65432"
:acquire_lock :acquire_lock
2>NUL ( 2>NUL (
......
...@@ -172,7 +172,7 @@ class TestCommand extends FlutterCommand { ...@@ -172,7 +172,7 @@ class TestCommand extends FlutterCommand {
workDir = fs.directory('test'); workDir = fs.directory('test');
if (!workDir.existsSync()) if (!workDir.existsSync())
throwToolExit('Test directory "${workDir.path}" not found.'); throwToolExit('Test directory "${workDir.path}" not found.');
files = _findTests(workDir); files = _findTests(workDir).toList();
if (files.isEmpty) { if (files.isEmpty) {
throwToolExit( throwToolExit(
'Test directory "${workDir.path}" does not appear to contain any test files.\n' 'Test directory "${workDir.path}" does not appear to contain any test files.\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment