mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't error if pytest skips all unit tests.
This commit is contained in:
parent
1372c94e77
commit
47083f145a
1 changed files with 7 additions and 1 deletions
|
@ -515,7 +515,13 @@ def command_units(args):
|
||||||
|
|
||||||
for version, command, env in version_commands:
|
for version, command, env in version_commands:
|
||||||
display.info('Unit test with Python %s' % version)
|
display.info('Unit test with Python %s' % version)
|
||||||
intercept_command(args, command, env=env, python_version=version)
|
|
||||||
|
try:
|
||||||
|
intercept_command(args, command, env=env, python_version=version)
|
||||||
|
except SubprocessError as ex:
|
||||||
|
# pytest exits with status code 5 when all tests are skipped, which isn't an error for our use case
|
||||||
|
if ex.status != 5:
|
||||||
|
raise
|
||||||
|
|
||||||
|
|
||||||
def command_compile(args):
|
def command_compile(args):
|
||||||
|
|
Loading…
Reference in a new issue