Fix functional test invocation

Current way is too complex and sometimes gives false positives.

Change-Id: Ica637eb4e55896336e0d7711db8f43941a1f84cb
This commit is contained in:
Dmitry Tantsur 2015-07-23 15:32:55 +02:00
parent 7bef0f63c6
commit b5feb7d5f7
1 changed files with 1 additions and 4 deletions

View File

@ -18,7 +18,6 @@ import contextlib
import json
import os
import shutil
import sys
import tempfile
import unittest
@ -197,6 +196,4 @@ def mocked_server():
if __name__ == '__main__':
with mocked_server():
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
res = unittest.TextTestRunner().run(suite)
sys.exit(0 if res.wasSuccessful else 1)
unittest.main()