Skip to content
Snippets Groups Projects
Commit 17908c16 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Address comments and add a TODO.

parent e6cc9c7a
No related branches found
No related tags found
No related merge requests found
...@@ -286,10 +286,11 @@ class TestLite(setuptools.Command): ...@@ -286,10 +286,11 @@ class TestLite(setuptools.Command):
runner = tests.Runner() runner = tests.Runner()
result = runner.run(loader.suite) result = runner.run(loader.suite)
if not result.wasSuccessful(): if not result.wasSuccessful():
sys.exit(1) sys.exit('Test failure')
def _add_eggs_to_path(self): def _add_eggs_to_path(self):
"""Adds all egg files under .eggs to sys.path""" """Adds all egg files under .eggs to sys.path"""
# TODO(jtattemusch): there has to be a cleaner way to do this
import pkg_resources import pkg_resources
eggs_dir = os.path.join(PYTHON_STEM, '../../../.eggs') eggs_dir = os.path.join(PYTHON_STEM, '../../../.eggs')
eggs = [os.path.join(eggs_dir, filename) eggs = [os.path.join(eggs_dir, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment