[flutter_tools] Make setting of CWD consistent for flutter test (#74622)

This commit is contained in:
Jia Hao
2021-01-26 14:34:03 +08:00
committed by GitHub
parent 2eeeba9c09
commit 22f1700427
10 changed files with 26 additions and 24 deletions

View File

@@ -0,0 +1 @@
[0-9]+:[0-9]+ [+]1: All tests passed!

View File

@@ -0,0 +1,12 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
void main() {
test('working directory is the root of this package', () {
expect(Directory.current.path, endsWith('automated_tests'));
});
}