Exit correctly so test.py can be used in CI
(cherry picked from commit d516fe71ea1d8bdb7b2e278fa519f7f860d7e234)
This commit is contained in:
parent
e0be91a4c9
commit
557eb524f0
3
test.py
3
test.py
|
@ -148,6 +148,9 @@ def main():
|
||||||
for thread in threading.enumerate():
|
for thread in threading.enumerate():
|
||||||
if thread is not threading.currentThread():
|
if thread is not threading.currentThread():
|
||||||
thread._Thread__stop()
|
thread._Thread__stop()
|
||||||
|
# Exit correctly
|
||||||
|
if not result.wasSuccessful():
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue