diff options
| author | Ramon Fernandez <ramon@mongodb.com> | 2017-04-15 08:24:38 -0400 |
|---|---|---|
| committer | Ramon Fernandez <ramon@mongodb.com> | 2017-04-15 08:24:38 -0400 |
| commit | 6408dcd1b5f4fa1747fa2acac50b8cd004343ca7 (patch) | |
| tree | b4b7814763c33c20c28fe143094252f0478b2cf8 /buildscripts | |
| parent | bc135d00323ccbe35d7ba9030b3c20f7d28b34ad (diff) | |
Revert "SERVER-28307 Integrate IDL python tests into evergreen"r3.5.6
This reverts commit 33d285eb809565b7c3d6bb9d19bfa2b4d495ddf0.
Diffstat (limited to 'buildscripts')
| -rw-r--r-- | buildscripts/idl/run_tests.py | 9 | ||||
| -rw-r--r-- | buildscripts/idl/tests/test_binder.py | 2 | ||||
| -rw-r--r-- | buildscripts/idl/tests/test_parser.py | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/buildscripts/idl/run_tests.py b/buildscripts/idl/run_tests.py index 9f1aaa11f92..cf04f7fee5a 100644 --- a/buildscripts/idl/run_tests.py +++ b/buildscripts/idl/run_tests.py @@ -14,11 +14,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # """ -IDL Unit Test runner. +IDL Unit Test runner Generates a file called results.xml in the XUnit format. """ -from __future__ import absolute_import, print_function import sys import unittest @@ -33,8 +32,10 @@ def run_tests(): # my-py type information. all_tests = unittest.defaultTestLoader.discover(start_dir="tests") # type: ignore - runner = XMLTestRunner(verbosity=2, failfast=False, output='results') - result = runner.run(all_tests) + with open("results.xml", "wb") as output: + + runner = XMLTestRunner(verbosity=2, failfast=False, output=output) + result = runner.run(all_tests) sys.exit(not result.wasSuccessful()) diff --git a/buildscripts/idl/tests/test_binder.py b/buildscripts/idl/tests/test_binder.py index 6b13e3598b9..6048f136a20 100644 --- a/buildscripts/idl/tests/test_binder.py +++ b/buildscripts/idl/tests/test_binder.py @@ -24,7 +24,7 @@ import unittest if __package__ is None: import sys from os import path - sys.path.append(path.dirname(path.abspath(__file__))) + sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from context import idl import testcase else: diff --git a/buildscripts/idl/tests/test_parser.py b/buildscripts/idl/tests/test_parser.py index 9faf7ce589b..9a3af5c5747 100644 --- a/buildscripts/idl/tests/test_parser.py +++ b/buildscripts/idl/tests/test_parser.py @@ -24,7 +24,7 @@ import unittest if __package__ is None: import sys from os import path - sys.path.append(path.dirname(path.abspath(__file__))) + sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from context import idl import testcase else: |
