-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the run scripts so they will propagate exit codes. This allows them to break the build if tests fail. Disable the tooling integration tests since they actually fail, and will now fail the builds. This will need to be remedied (issue #313).
- Loading branch information
1 parent
9b9d953
commit 29a8704
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# $Id$ | ||
|
||
import pytest | ||
import sys | ||
import os | ||
|
||
|
||
def run_all(extra_args=None): | ||
""" | ||
Run all the tooling integration tests of riptable. | ||
Parameters | ||
---------- | ||
extra_args : list | ||
List of extra arguments (e.g. ['--verbosity=3']) | ||
""" | ||
if extra_args is None: | ||
extra_args = [] | ||
return pytest.main(extra_args + ['-k', 'test_', os.path.dirname(__file__)]) | ||
|
||
|
||
# Usage: "ipython -m riptable.test_tooling_integration.run" | ||
# You can add more arguments to the pytest, like "ipython -m riptable.test_tooling_integration.run --verbosity=2" | ||
if __name__ == "__main__": | ||
# Force ipython to exit with the exit code, as sys.exit() is caught and ignored :-/ | ||
os._exit(run_all(sys.argv[1:])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters