Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/exit_codes.py

Issue 2800853003: webkitpy: Unify the exit status codes. (Closed)
Patch Set: webkitpy: Unify the exit status codes. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import signal
6
7 OK_EXIT_STATUS = 0
8
9 # This matches what the shell does on POSIX (returning -SIGNUM on unhandled
10 # signal). (unsigned)(-SIGINT) == 128+signal.SIGINT
11 INTERRUPTED_EXIT_STATUS = signal.SIGINT + 128
12
13 # POSIX limits status codes to 0-255. Normally run-webkit-tests returns the
14 # number of tests that failed. These indicate exceptional conditions triggered
15 # by the script itself, so we count backwards from 255 (aka -1) to enumerate
16 # them.
17 #
18 # FIXME: crbug.com/357866. We really shouldn't return the number of failures
19 # in the exit code at all.
20 EARLY_EXIT_STATUS = 251
21 SYS_DEPS_EXIT_STATUS = 252
22 NO_TESTS_EXIT_STATUS = 253
23 NO_DEVICES_EXIT_STATUS = 254
24 UNEXPECTED_ERROR_EXIT_STATUS = 255
25
26 # FIXME: EXCEPTIONAL_EXIT_STATUS and NO_DEVICES_EXIT_STATUS conflict
27 EXCEPTIONAL_EXIT_STATUS = 254
28
29 ERROR_CODES = (
30 INTERRUPTED_EXIT_STATUS,
31 EARLY_EXIT_STATUS,
32 SYS_DEPS_EXIT_STATUS,
33 NO_TESTS_EXIT_STATUS,
34 NO_DEVICES_EXIT_STATUS,
35 UNEXPECTED_ERROR_EXIT_STATUS,
36 )
37
38 # In order to avoid colliding with the above codes, we put a ceiling on
39 # the value returned by num_regressions
40 MAX_FAILURES_EXIT_STATUS = 101
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698