Unverified Commit 62b7aee9 authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Fix broken test (#17684)

parent 78e205c8
...@@ -10,6 +10,7 @@ import 'package:flutter_devicelab/framework/framework.dart'; ...@@ -10,6 +10,7 @@ import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart'; import 'package:flutter_devicelab/framework/utils.dart';
String javaHome; String javaHome;
String errorMessage;
void main() async { void main() async {
await task(() async { await task(() async {
...@@ -26,17 +27,15 @@ void main() async { ...@@ -26,17 +27,15 @@ void main() async {
try { try {
section('gradlew assembleDebug'); section('gradlew assembleDebug');
await project.runGradleTask('assembleDebug'); await project.runGradleTask('assembleDebug');
errorMessage = _validateSnapshotDependency(project, 'build/app.dill');
String errorMessage = _validateSnapshotDependency(project,
'${project.rootPath}/build/app/intermediates/flutter/debug/snapshot_blob.bin');
if (errorMessage != null) { if (errorMessage != null) {
return new TaskResult.failure(errorMessage); return new TaskResult.failure(errorMessage);
} }
section('gradlew assembleDebug preview-dart-2'); section('gradlew assembleDebug no-preview-dart-2');
await project.runGradleTask('assembleDebug', options: <String>['-Ppreview-dart-2=true']); await project.runGradleTask('assembleDebug', options: <String>['-Ppreview-dart-2=false']);
errorMessage = _validateSnapshotDependency(project,
errorMessage = _validateSnapshotDependency(project, 'build/app.dill'); '${project.rootPath}/build/app/intermediates/flutter/debug/snapshot_blob.bin');
if (errorMessage != null) { if (errorMessage != null) {
return new TaskResult.failure(errorMessage); return new TaskResult.failure(errorMessage);
} }
......
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