21 lines
548 B
Python
21 lines
548 B
Python
""" This script simply gets the paths correct for testing eventlet with the
|
|
hub extension for Nose."""
|
|
import nose
|
|
from os.path import dirname, realpath, abspath
|
|
import sys
|
|
|
|
|
|
parent_dir = dirname(dirname(realpath(abspath(__file__))))
|
|
if parent_dir not in sys.path:
|
|
sys.path.insert(0, parent_dir)
|
|
|
|
# hudson does a better job printing the test results if the exit value is 0
|
|
zero_status = '--force-zero-status'
|
|
if zero_status in sys.argv:
|
|
sys.argv.remove(zero_status)
|
|
launch = nose.run
|
|
else:
|
|
launch = nose.main
|
|
|
|
launch(argv=sys.argv)
|