| 1 |
"""Exit codes a test reports to runtests.py (autotools test convention). |
| 2 |
|
| 3 |
Shared by runtests.py (the harness, which reads these from each test) and |
| 4 |
rsyncfns.py (the helpers, which exit with them) so the 0/1/2/77/78 values are |
| 5 |
named in exactly one place. This module has no import-time side effects, so |
| 6 |
runtests.py can import it without pulling in rsyncfns's environment checks. |
| 7 |
""" |
| 8 |
|
| 9 |
import enum |
| 10 |
|
| 11 |
|
| 12 |
class Exit(enum.IntEnum): |
| 13 |
PASS = 0 |
| 14 |
FAIL = 1 |
| 15 |
ERROR = 2 |
| 16 |
SKIP = 77 |
| 17 |
XFAIL = 78 |