Add noserunner.py as a valid way to test MBS

This commit is contained in:
Matt Prahl
2016-12-09 11:52:18 -05:00
parent cbf1f6acdc
commit 6182053c4a

View File

@@ -49,7 +49,7 @@ def _init_app_config(app):
"""
app.config.from_envvar("MBS_SETTINGS", silent=True)
here = sys.path[0]
if any(['nosetests' in arg for arg in sys.argv]):
if any(['nosetests' in arg or 'noserunner.py' in arg for arg in sys.argv]):
app.config.from_object('%s.TestConfiguration' % conf_module)
elif 'MODULE_BUILD_SERVICE_DEVELOPER_ENV' in os.environ and \
os.environ['MODULE_BUILD_SERVICE_DEVELOPER_ENV'].lower() in (