diff --git a/.azure-pipelines/test_plan.py b/.azure-pipelines/test_plan.py index 56604e95a46..575c735061f 100644 --- a/.azure-pipelines/test_plan.py +++ b/.azure-pipelines/test_plan.py @@ -823,8 +823,10 @@ def poll(self, test_plan_id, interval=60, timeout=-1, expected_state="", expecte scripts = args.scripts specific_param = [] - # For KVM PR test, get test modules from pr_test_scripts.yaml, otherwise use args.scripts - if args.platform == "kvm": + # For PR test, if specify test modules explicitly, use them to run PR test. + # Otherwise, get test modules from pr_test_scripts.yaml. + explicitly_specify_test_module = args.features or args.scripts + if args.test_plan_type == "PR" and (not explicitly_specify_test_module): args.test_set = args.test_set if args.test_set else args.topology scripts, specific_param = get_test_scripts(args.test_set) scripts = ",".join(scripts)