Skip to content

[acstests] Migrate lag test to Python 3#14001

Merged
wangxin merged 2 commits intosonic-net:masterfrom
opcoder0:acstests/migrate-lag-test-to-py3
Aug 7, 2024
Merged

[acstests] Migrate lag test to Python 3#14001
wangxin merged 2 commits intosonic-net:masterfrom
opcoder0:acstests/migrate-lag-test-to-py3

Conversation

@opcoder0
Copy link
Contributor

@opcoder0 opcoder0 commented Aug 6, 2024

Description of PR

In an effort to move all PTF tests to Python 3. This PR moves

  1. acstest/lag_test.py to Python 3 as it is a PTF test.
  2. Uses existing fixtures to setup acstests on PTF host making calling convention uniform like other PTF tests

Summary:
Fixes # Not applicable

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

As Python 2 is EOL-ed all the PTF test scripts will need to be migrated to Python 3. This PR migrates acstest lag_test to Python 3.

How did you do it?

Ran 2to3

How did you verify/test it?

Ran LAG test on virtual testbed. Tests have passed

Any platform specific information?

Not applicable

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

Not applicable

Documentation

Not applicable

@wangxin wangxin merged commit 7cee9b1 into sonic-net:master Aug 7, 2024
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
What is the motivation for this PR?
As Python 2 is EOL-ed all the PTF test scripts will need to be migrated to Python 3. This PR migrates acstest lag_test to Python 3.

How did you do it?
Ran 2to3

How did you verify/test it?
Ran LAG test on virtual testbed. Tests have passed
saiarcot895 added a commit to saiarcot895/sonic-mgmt that referenced this pull request Oct 10, 2024
PR sonic-net#14001 moved the lag_test PTF script into the Python 3 folder, but
PR sonic-net#14031 missed updating this test. Update this test to reflect that
the lag_test script should be run under Python 3.

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 mentioned this pull request Oct 10, 2024
8 tasks
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
What is the motivation for this PR?
As Python 2 is EOL-ed all the PTF test scripts will need to be migrated to Python 3. This PR migrates acstest lag_test to Python 3.

How did you do it?
Ran 2to3

How did you verify/test it?
Ran LAG test on virtual testbed. Tests have passed
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.

4 participants