error function instead of print with sys.exit in CLI commands

Fixes: https://pagure.io/koji/issue/3112
This commit is contained in:
Jana Cupova 2021-11-08 12:31:17 +01:00 committed by Tomas Kopecek
parent 6fd7845be3
commit 5232ea5aa1
3 changed files with 90 additions and 139 deletions

View file

@ -179,7 +179,7 @@ class TestImportCG(utils.CliTestCase):
options,
session,
arguments,
stdout=expected,
stderr=expected,
exit_code=1)
# Case 4. path not exist