Skip to content

Commit 273d23f

Browse files
committed
Code cleanup
1 parent a7dc99c commit 273d23f

4 files changed

Lines changed: 11 additions & 27 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
# TODO(https://github.com/flutter/devtools/issues/9357): Re-enable tests on windows-latest.
209209
os: [macos-latest]
210210
# Consider running integration tests in ddc mode, too.
211-
bot: [integration_dart2js, integration_wasm]
211+
bot: [integration_dart2js, integration_dart2wasm]
212212
device: [flutter, flutter-web, dart-cli]
213213
# Option 1/1 will run all tests for a device in a single shard.
214214
# Option 1/2 and 2/2 should be enabled to run tests for a device in 2 shards.

packages/devtools_app/integration_test/test_infra/run/_test_app_driver.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,6 @@ class TestFlutterApp extends IntegrationTestApp {
3333
],
3434
workingDirectory: testAppPath,
3535
);
36-
37-
// runProcess = await Process.start(
38-
// Platform.isWindows
39-
// ? 'flutter.bat'
40-
// : '/Users/elliottbrooks/dev/flutter/bin/dart',
41-
// [
42-
// '/Users/elliottbrooks/dev/flutter/packages/flutter_tools/bin/flutter_tools.dart',
43-
// 'run',
44-
// '--machine',
45-
// '-d',
46-
// testAppDevice.argName,
47-
// // Do not serve DevTools from Flutter Tools.
48-
// '--no-devtools',
49-
// ],
50-
// workingDirectory: testAppPath,
51-
// );
5236
}
5337

5438
@override

packages/devtools_shared/lib/src/test/integration_test_runner.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class IntegrationTestRunnerArgs {
227227
/// instead of 'chrome'.
228228
bool get headless => argResults.flag(_headlessArg);
229229

230-
/// Whether this integration test should be run on wasm.
230+
/// Whether this integration test should be run against dart2wasm-compiled DevTools.
231231
bool get useWasm => argResults.flag(_wasmArg);
232232

233233
/// Sharding information for this test run.
@@ -288,7 +288,7 @@ class IntegrationTestRunnerArgs {
288288
..addFlag(
289289
_wasmArg,
290290
negatable: false,
291-
help: 'Runs the integration test on wasm.',
291+
help: 'Runs the integration test against dart2wasm-compiled DevTools.',
292292
)
293293
..addOption(
294294
_shardArg,

tool/ci/bots.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ elif [ "$BOT" = "test_webdriver" ]; then
7272
# elif [ "$BOT" = "integration_ddc" ]; then
7373

7474
# TODO(https://github.com/flutter/devtools/issues/1987): rewrite legacy integration tests.
75-
elif [[ "$BOT" == "integration_dart2js" || "$BOT" == "integration_wasm" ]]; then
76-
if [ "$BOT" == "integration_wasm" ]; then
77-
MAYBE_WASM_FLAG="--wasm"
75+
elif [[ "$BOT" == "integration_dart2js" || "$BOT" == "integration_dart2wasm" ]]; then
76+
if [ "$BOT" == "integration_dart2wasm" ]; then
77+
WASM_FLAG="--wasm"
7878
else
79-
MAYBE_WASM_FLAG=""
79+
WASM_FLAG=""
8080
fi
8181

8282
if [ "$DEVTOOLS_PACKAGE" = "devtools_app" ]; then
@@ -91,15 +91,15 @@ run to see if golden image failures have been uploaded (this only happens once a
9191
completed). Download these goldens and update them in the codebase to apply the updates."
9292

9393
if [ "$DEVICE" = "flutter" ]; then
94-
dart run integration_test/run_tests.dart $MAYBE_WASM_FLAG --headless --shard="$SHARD"
94+
dart run integration_test/run_tests.dart $WASM_FLAG --headless --shard="$SHARD"
9595
elif [ "$DEVICE" = "flutter-web" ]; then
96-
dart run integration_test/run_tests.dart --test-app-device=chrome $MAYBE_WASM_FLAG --headless --shard="$SHARD"
96+
dart run integration_test/run_tests.dart --test-app-device=chrome $WASM_FLAG --headless --shard="$SHARD"
9797
elif [ "$DEVICE" = "dart-cli" ]; then
98-
dart run integration_test/run_tests.dart --test-app-device=cli $MAYBE_WASM_FLAG --headless --shard="$SHARD"
98+
dart run integration_test/run_tests.dart --test-app-device=cli $WASM_FLAG --headless --shard="$SHARD"
9999
fi
100100
elif [ "$DEVTOOLS_PACKAGE" = "devtools_extensions" ]; then
101101
pushd $DEVTOOLS_DIR/packages/devtools_extensions
102-
dart run integration_test/run_tests.dart $MAYBE_WASM_FLAG --headless
102+
dart run integration_test/run_tests.dart $WASM_FLAG --headless
103103
popd
104104
fi
105105
fi

0 commit comments

Comments
 (0)