Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix directory referencs.
  • Loading branch information
jonahwilliams committed Feb 15, 2024
commit 395aed435b7f55432adb1a4d7b34169af141e991
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ class NewGalleryChromeRunTest {

/// Runs the test.
Future<TaskResult> run() async {
final TaskResult result = await inDirectory<TaskResult>('dev/integration_tests/new_gallery', () async {
await flutter('doctor');
await flutter('packages', options: <String>['get']);
final TaskResult result = await inDirectory<TaskResult>('${flutterDirectory.path}/dev/integration_tests/new_gallery/', () async {
await flutter('create', options: <String>[
'--platforms',
'web',
'web,android,ios',
'--no-overwrite',
'.'
]);
await flutter('doctor');
await flutter('packages', options: <String>['get']);

await flutter('build', options: <String>[
'web',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ class NewGalleryWebCompileTest {
/// Runs the test.
Future<TaskResult> run() async {
final Map<String, Object> metrics = await inDirectory<Map<String, int>>(
'dev/integration_tests/new_gallery',
'${flutterDirectory.path}/dev/integration_tests/new_gallery/',
() async {
await flutter('doctor');

await flutter('create', options: <String>[
await flutter('create', options: <String>[
'--platforms',
'web',
'web,android,ios',
'--no-overwrite',
'.'
]);

return WebCompileTest.runSingleBuildTest(
directory: 'dev/integration_tests/new_gallery',
directory: '${flutterDirectory.path}/dev/integration_tests/new_gallery/',
metric: metricKeyPrefix,
measureBuildTime: true,
);
Expand Down
5 changes: 3 additions & 2 deletions dev/devicelab/lib/tasks/new_gallery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import '../framework/utils.dart';
import 'perf_tests.dart';

class NewGalleryPerfTest extends PerfTest {
Expand All @@ -12,10 +13,10 @@ class NewGalleryPerfTest extends PerfTest {
super.timeoutSeconds,
super.forceOpenGLES,
}) : super(
'dev/integration_tests/new_gallery',
'${flutterDirectory.path}/dev/integration_tests/new_gallery',
'test_driver/transitions_perf.dart',
timelineFileName,
dartDefine: dartDefine,
createPlatforms: ['android', 'ios', 'web']
createPlatforms: <String>['android', 'ios', 'web']
);
}