Skip to content

[master][CI/CD] Priority use args.scripts to get test modules#9480

Merged
lerry-lee merged 3 commits intosonic-net:masterfrom
lerry-lee:chunangli/priority_use_args_as_pr_scripts
Aug 21, 2023
Merged

[master][CI/CD] Priority use args.scripts to get test modules#9480
lerry-lee merged 3 commits intosonic-net:masterfrom
lerry-lee:chunangli/priority_use_args_as_pr_scripts

Conversation

@lerry-lee
Copy link
Copy Markdown
Contributor

@lerry-lee lerry-lee commented Aug 16, 2023

Description of PR

Priority use args.scripts to get test modules if this param is not None for KVM platform. Because pr_test_scripts.yaml is the default file to get test modules, If we don't pass args.scripts, it will get test module from pr_test_scripts.yaml.

Signed-off-by: Chun'ang Li [email protected]

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Priority use args.scripts to get test modules if this param is not None for KVM platform. Because pr_test_scripts.yaml is the default file to get test modules, If we don't pass args.scripts, it will get test module from pr_test_scripts.yaml.

How did you do it?

Modify test_plan.py.

How did you verify/test it?

Manually trigger two test plans, one pass args.scrips, it will get test module from it, another don't pass args.scripts, it will get test module from pr_test_scripts.yaml. All as expected.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: Chun'ang Li <[email protected]>
Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lerry-lee lerry-lee merged commit 472ace3 into sonic-net:master Aug 21, 2023
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…net#9480)

What is the motivation for this PR?
Priority use args.scripts to get test modules if this param is not None for KVM platform. Because pr_test_scripts.yaml is the default file to get test modules, If we don't pass args.scripts, it will get test module from pr_test_scripts.yaml.

How did you do it?
Modify test_plan.py.

How did you verify/test it?
Manually trigger two test plans, one pass args.scrips, it will get test module from it, another don't pass args.scripts, it will get test module from pr_test_scripts.yaml. All as expected.

Signed-off-by: Chun'ang Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants