mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed Enterprise tests
This commit is contained in:
parent
2f5fadf5a3
commit
05e358373e
@ -10,18 +10,19 @@ def get_test_file(test_list):
|
|||||||
#return [test[0].split(' ')[0].split('.')[0].split('<')[1] for test in test_list]
|
#return [test[0].split(' ')[0].split('.')[0].split('<')[1] for test in test_list]
|
||||||
return [test[0].test_name for test in test_list]
|
return [test[0].test_name for test in test_list]
|
||||||
|
|
||||||
|
#Run Enterprise tests
|
||||||
|
is_enterprise = '1' == getenv('ENTERPRISE', False)
|
||||||
|
|
||||||
a = TestLoader()
|
a = TestLoader()
|
||||||
tests = a.discover(start_dir='console',pattern='PAN*.py')
|
|
||||||
|
if is_enterprise:
|
||||||
|
tests = a.discover(start_dir='console',pattern='*.py')
|
||||||
|
else:
|
||||||
|
tests = a.discover(start_dir='console',pattern='PAN*.py')
|
||||||
|
|
||||||
c = ArticaTestResult()
|
c = ArticaTestResult()
|
||||||
tests.run(c)
|
tests.run(c)
|
||||||
|
|
||||||
#Run Enterprise tests
|
|
||||||
is_enterprise = '1' == getenv('ENTERPRISE', False)
|
|
||||||
if is_enterprise:
|
|
||||||
enterprise_tests = a.discover(start_dir='console/enterprise',pattern='PAN*.py')
|
|
||||||
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"])
|
||||||
for test,error_msg in c.failures+c.skipped+c.errors:
|
for test,error_msg in c.failures+c.skipped+c.errors:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user