// Copyright 2017 The Chromium 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'package:file/testing.dart';import'package:flutter_tools/executable.dart'astools;import'package:flutter_tools/src/cache.dart';import'package:flutter_tools/src/base/io.dart';import'package:flutter_tools/src/base/os.dart';import'package:mockito/mockito.dart';import'package:test/test.dart';import'src/context.dart';voidmain(){Cache.disableLocking();intexitCode;setExitFunctionForTests((intcode){exitCode=code;});group('--bug-report',(){testUsingContext('generates valid zip file',()async{awaittools.main(<String>['devices','--bug-report']);expect(exitCode,0);verify(os.zip(any,argThat(hasPath(matches(r'bugreport_01\.zip')))));});});}