6from contextlib
import ExitStack
19 if '--cleanup-dart-processes' in args:
20 args.remove(
'--cleanup-dart-processes')
23 tools_dir = os.path.dirname(os.path.realpath(__file__))
24 repo_dir = os.path.dirname(tools_dir)
25 dart_test_script = os.path.join(repo_dir,
'pkg',
'test_runner',
'bin',
31 android_platform_tools = os.path.normpath(
32 os.path.join(tools_dir,
33 '../third_party/android_tools/sdk/platform-tools'))
34 if os.path.isdir(android_platform_tools):
35 os.environ[
'PATH'] =
'%s%s%s' % (os.environ[
'PATH'], os.pathsep,
36 android_platform_tools)
39 with ExitStack()
as stack:
41 stack.enter_context(ctx)
42 exit_code = subprocess.call(command)
47 os.path.join(tools_dir,
'task_kill.py'),
'--kill_dart=True',
50 subprocess.call(cleanup_command)
56if __name__ ==
'__main__':
def CoreDumpArchiver(args)
def DiagnoseExitCode(exit_code, command)
def FileDescriptorLimitIncreaser()
def CheckedInSdkExecutable()