Skip to content

[pre-commit] Fix style issues in test scripts under tests/l*, tests/m*, tests/n* folder#7936

Merged
xwjiang-ms merged 1 commit intosonic-net:masterfrom
xwjiang-ms:pre-commit-tests-lmno
Apr 6, 2023
Merged

[pre-commit] Fix style issues in test scripts under tests/l*, tests/m*, tests/n* folder#7936
xwjiang-ms merged 1 commit intosonic-net:masterfrom
xwjiang-ms:pre-commit-tests-lmno

Conversation

@xwjiang-ms
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

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?

pre-commit is a static analysis tool introduced recently. This tool is not able to do diff-only check. It checks the whole files touched by PR. We can't blame PR author for legacy issues. That's why currently the pre-commit check is only optional.

To ensure that we can make pre-commit a mandatory check for PRs submitted to this repository, we need to fix all the legacy issues complained by pre-commit.

How did you do it?

This change fixes the style issues of test scripts under tests/l*, tests/m*, tests/n* folder

How did you verify/test it?

Any platform specific information?

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

Documentation

`tests/m*`, `tests/n*` folder

What is the motivation for this PR?
pre-commit is a static analysis tool introduced recently. This tool is
not able to do diff-only check. It checks the whole files touched by PR.
We can't blame PR author for legacy issues. That's why currently the
pre-commit check is only optional.

To ensure that we can make pre-commit a mandatory check for PRs
submitted to this repository, we need to fix all the legacy issues
complained by pre-commit.

How did you do it?
This change fixes the style issues of test scripts under `tests/l*`,
`tests/m*`, `tests/n*` folder

How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
@xwjiang-ms xwjiang-ms merged commit b447ec1 into sonic-net:master Apr 6, 2023
@xwjiang-ms xwjiang-ms deleted the pre-commit-tests-lmno branch April 6, 2023 02:28
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