We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d442b6f commit 0677356Copy full SHA for 0677356
run_tests.py
@@ -1,7 +1,5 @@
1
#!/usr/bin/env python
2
-# -*- coding: utf-8 -*-
3
-# Copyright (c) 2014 Pawel Rozlach
4
-# Copyright (c) 2013 Pawel Rozlach
+# Copyright (c) 2013 Spotify AB
5
#
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
# use this file except in compliance with the License. You may obtain a copy of
@@ -42,11 +40,16 @@ def main():
42
40
loader = unittest.TestLoader()
43
41
tests = loader.discover('./test/')
44
testRunner = unittest.runner.TextTestRunner(descriptions=True, verbosity=1)
45
- testRunner.run(tests)
+ res = testRunner.run(tests)
46
47
if "coverage" in sys.modules:
48
cov.stop()
49
cov.html_report()
50
+ if res.wasSuccessful():
+ sys.exit(0)
51
+ else:
52
+ sys.exit(1)
53
+
54
if __name__ == '__main__':
55
main()
0 commit comments