mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Python runners aren't aware of suites: they report ``fully.qualified.test.names``. These names are splitted to the suites on the Python side, and just before process ends we close all of them. GitOrigin-RevId: 4e1ad5b308cd393ac8877e1f6e1f616b254a130c
22 lines
680 B
Python
22 lines
680 B
Python
# coding=utf-8
|
|
import re
|
|
|
|
import nose
|
|
import sys
|
|
|
|
from _jb_runner_tools import jb_start_tests, jb_patch_separator, jb_doc_args, \
|
|
JB_DISABLE_BUFFERING, jb_finish_tests
|
|
from teamcity.nose_report import TeamcityReport
|
|
|
|
if __name__ == '__main__':
|
|
path, targets, additional_args = jb_start_tests()
|
|
sys.argv += [path] if path else jb_patch_separator(targets, fs_glue="/", python_glue=".", fs_to_python_glue=".py:")
|
|
sys.argv += additional_args
|
|
if JB_DISABLE_BUFFERING and "-s" not in sys.argv:
|
|
sys.argv += ["-s"]
|
|
jb_doc_args("Nosetest", sys.argv)
|
|
try:
|
|
sys.exit(nose.main(addplugins=[TeamcityReport()]))
|
|
finally:
|
|
jb_finish_tests()
|