Fixed enterprise tests

This commit is contained in:
cesar991 2016-07-19 17:01:27 +02:00
parent e7ef4255db
commit 2f5fadf5a3
1 changed files with 4 additions and 4 deletions

View File

@ -13,14 +13,14 @@ def get_test_file(test_list):
a = TestLoader() a = TestLoader()
tests = a.discover(start_dir='console',pattern='PAN*.py') tests = a.discover(start_dir='console',pattern='PAN*.py')
c = ArticaTestResult()
tests.run(c)
#Run Enterprise tests #Run Enterprise tests
is_enterprise = '1' == getenv('ENTERPRISE', False) is_enterprise = '1' == getenv('ENTERPRISE', False)
if is_enterprise: if is_enterprise:
enterprise_tests = a.discover(start_dir='console/enterprise',pattern='PAN*.py') enterprise_tests = a.discover(start_dir='console/enterprise',pattern='PAN*.py')
enterprise_tests.run(c)
c = ArticaTestResult()
tests.run(c)
enterprise_tests.run(c)
#Update Saouce Labs jobs #Update Saouce Labs jobs
sauce_client = SauceClient(environ["SAUCE_USERNAME"], environ["SAUCE_ACCESS_KEY"]) sauce_client = SauceClient(environ["SAUCE_USERNAME"], environ["SAUCE_ACCESS_KEY"])