Skip to content

Skip running tests if pretest failed#3712

Merged
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:skip-early-pr
Jul 8, 2021
Merged

Skip running tests if pretest failed#3712
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:skip-early-pr

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jun 28, 2021

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

When we use the run_tests.sh tool to run test, it may run some pretests
to prepare DUT. In case pretests failed, its highly possible that the
DUT is not in good status. There would be no point continue running
rest of the tests that may take many hours to complete.

How did you do it?

This change enhanced the run_tests.sh script to skip running tests if
pretest failed.

How did you verify/test it?

Shutdown the portchannel of a neighbor VM. Use the run_tests.sh to run scripts. Do not bypass pretest.
The run_tests.sh script exit early as soon as prepare DUT failed.

Any platform specific information?

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

Documentation

When we use the run_tests.sh tool to run test, it may run some pretests
to prepare DUT. In case pretests failed, its highly possible that the
DUT is not in good status. There would be no point continue running
rest of the tests that may take many hours to complete.

This change enhanced the run_tests.sh script to skip running tests if
pretest failed.

Signed-off-by: Xin Wang <[email protected]>
@wangxin wangxin requested a review from a team June 28, 2021 14:56
@wangxin
Copy link
Collaborator Author

wangxin commented Jul 8, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin wangxin merged commit 1d91c44 into sonic-net:master Jul 8, 2021
@wangxin wangxin deleted the skip-early-pr branch September 9, 2021 08:07
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
When we use the run_tests.sh tool to run test, it may run some pretests
to prepare DUT. In case pretests failed, its highly possible that the
DUT is not in good status. There would be no point continue running
rest of the tests that may take many hours to complete.

This change enhanced the run_tests.sh script to skip running tests if
pretest failed.

Signed-off-by: Xin Wang <[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