diff options
| author | Jason Chang <jasonnc@google.com> | 2023-08-03 14:38:00 -0700 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-07 23:56:07 +0000 |
| commit | f9aacd4087b02948da9a7878da48ea186ab99d5a (patch) | |
| tree | b683190635cd6fcb7cf817837ad0c4259b53078f /tests/test_error.py | |
| parent | b8a7b4a629c3435d77a3266a4e6dce51dc342bd9 (diff) | |
| download | git-repo-f9aacd4087b02948da9a7878da48ea186ab99d5a.tar.gz | |
Raise repo exit errors in place of sys.exit
Bug: b/293344017
Change-Id: I92d81c78eba8ff31b5252415f4c9a515a6c76411
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/381774
Tested-by: Jason Chang <jasonnc@google.com>
Reviewed-by: Joanna Wang <jojwang@google.com>
Commit-Queue: Jason Chang <jasonnc@google.com>
Diffstat (limited to 'tests/test_error.py')
| -rw-r--r-- | tests/test_error.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_error.py b/tests/test_error.py index 2733ab8c..2b28f5c2 100644 --- a/tests/test_error.py +++ b/tests/test_error.py | |||
| @@ -21,12 +21,16 @@ import unittest | |||
| 21 | import error | 21 | import error |
| 22 | import project | 22 | import project |
| 23 | import git_command | 23 | import git_command |
| 24 | import fetch | ||
| 25 | import command | ||
| 24 | from subcmds import all_modules | 26 | from subcmds import all_modules |
| 25 | 27 | ||
| 26 | imports = all_modules + [ | 28 | imports = all_modules + [ |
| 27 | error, | 29 | error, |
| 28 | project, | 30 | project, |
| 29 | git_command, | 31 | git_command, |
| 32 | fetch, | ||
| 33 | command, | ||
| 30 | ] | 34 | ] |
| 31 | 35 | ||
| 32 | 36 | ||
