in src/start_testbuilds.py [0:0]
def is_test_job_enabled(test_type):
"""
Check to see if a test job is enabled
See if we should run the tests based on test types and config options.
"""
if test_type == constants.SAGEMAKER_TESTS and config.is_sm_remote_test_enabled():
return True
if test_type == constants.EC2_TESTS and config.is_ec2_test_enabled():
return True
# We have no ECS/EKS/SANITY benchmark tests
if not config.is_benchmark_mode_enabled():
if test_type == constants.ECS_TESTS and config.is_ecs_test_enabled():
return True
if test_type == constants.EKS_TESTS and config.is_eks_test_enabled():
return True
if test_type == constants.SANITY_TESTS and config.is_sanity_test_enabled():
return True
return False