Skip to content

Commit

Permalink
release 0.1.15 (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jianhui Harold authored Apr 24, 2020
1 parent abc5891 commit 21821e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Release History
===============

0.1.15
++++++
* `sys.exit(0)` when no tests need to run instead of raising CLIError

0.1.14
++++++
Expand Down
2 changes: 1 addition & 1 deletion azdev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# license information.
# -----------------------------------------------------------------------------

__VERSION__ = '0.1.14'
__VERSION__ = '0.1.15'
5 changes: 4 additions & 1 deletion azdev/operations/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ def _find_test(index, name):
logger.warning("'%s' not found. If newly added, re-run with --discover", t)
continue

exit_code = 0

# Tests have been collected. Now run them.
if not test_paths:
raise CLIError('No tests selected to run.')
logger.warning('No tests selected to run.')
sys.exit(exit_code)

exit_code = 0
with ProfileContext(profile):
Expand Down

0 comments on commit 21821e8

Please sign in to comment.