allowing more than just mgmt be the update for what is considered to be a management package
@@ -22,6 +22,8 @@ dev_setup_script_location = os.path.join(root_dir, 'scripts/dev_setup.py')
# evaluating whether we want this or not.
ALLOWED_RETURN_CODES = []
+MANAGEMENT_PACKAGE_IDENTIFIERS = ['mgmt', 'azure-cognitiveservices-personalizer']
+
def prep_and_run_tests(targeted_packages, python_version, test_res):
print('running test setup for {}'.format(targeted_packages))
run_check_call([python_version, dev_setup_script_location, '-p', ','.join([os.path.basename(p) for p in targeted_packages])], root_dir)
@@ -29,7 +31,7 @@ def prep_and_run_tests(targeted_packages, python_version, test_res):
# if we are targeting only packages that are management plane, it is a possibility
# that no tests running is an acceptable situation
# we explicitly handle this here.
- if all(map(lambda x : 'mgmt' in x, targeted_packages)):
+ if all(map(lambda x : any([pkg_id in x for pkg_id in MANAGEMENT_PACKAGE_IDENTIFIERS]), targeted_packages)):
ALLOWED_RETURN_CODES.append(5)
print('Setup complete. Running pytest for {}'.format(targeted_packages))
