skipping tests correctly
authorIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Tue, 8 Dec 2015 19:21:49 +0000 (22:21 +0300)
committerIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Tue, 8 Dec 2015 19:21:49 +0000 (22:21 +0300)
python/helpers/pycharm/_jb_tox_runner.py

index 2a88022530f53d2ed5d23d248835cfb789435228..9d773dd9d80648ae0ca2ddd814d7e8e3c27d1f2a 100644 (file)
@@ -39,8 +39,10 @@ class _Reporter(Reporter):
         super(_Reporter, self).error(msg)
         name = teamcity.current_test_name()
         if name:
-            teamcity.testError(name, msg)
-            if name == teamcity.topmost_suite:
+            if name != teamcity.topmost_suite:
+                teamcity.testFailed(name, msg)
+            else:
+                teamcity.testFailed("ERROR", msg)
                 teamcity.testSuiteFinished(name)
         else:
             sys.stderr.write(msg)