-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail python tests on error instead of just ERROR output
Include the test_iter.py in the test_all.py too.
- Loading branch information
1 parent
d89291a
commit 4140297
Showing
6 changed files
with
43 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import test_lite | ||
import test_iter | ||
import test_skipdata | ||
import test_customized_mnem | ||
import test_compatibility_layer | ||
|
||
test_lite.test_class() | ||
test_skipdata.test_class() | ||
test_customized_mnem.test() | ||
test_compatibility_layer.test_compatibility() | ||
errors = [] | ||
errors.extend(test_lite.test_class()) | ||
errors.extend(test_iter.test_class()) | ||
errors.extend(test_skipdata.test_class()) | ||
errors.extend(test_customized_mnem.test()) | ||
errors.extend(test_compatibility_layer.test_compatibility()) | ||
|
||
if errors: | ||
print("Some errors happened. Please check the output") | ||
for error in errors: | ||
print(error) | ||
exit(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
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
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