Fix functional test invocation

Current way is too complex and sometimes gives false positives.

Change-Id: Ica637eb4e55896336e0d7711db8f43941a1f84cb
changes/70/205070/1
Dmitry Tantsur 8 years ago
parent 7bef0f63c6
commit b5feb7d5f7

@ -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()

Loading…
Cancel
Save