Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
run_with_coredumps_enabled.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
3# for details. All rights reserved. Use of this source code is governed by a
4# BSD-style license that can be found in the LICENSE file.
5
6from contextlib import ExitStack
7import subprocess
8import sys
9
10import utils
11
12
13def Main():
14 args = sys.argv[1:]
15
16 with ExitStack() as stack:
17 for ctx in utils.CoreDumpArchiver(args):
18 stack.enter_context(ctx)
19 exit_code = subprocess.call(args)
20
21 utils.DiagnoseExitCode(exit_code, args)
22 return exit_code
23
24
25if __name__ == '__main__':
26 sys.exit(Main())
CoreDumpArchiver(args)
Definition utils.py:973
DiagnoseExitCode(exit_code, command)
Definition utils.py:492