Skip to content

[tests]: fix drops_group_test failure on second run#1023

Merged
lguohan merged 2 commits intosonic-net:masterfrom
lguohan:droptest
Aug 3, 2020
Merged

[tests]: fix drops_group_test failure on second run#1023
lguohan merged 2 commits intosonic-net:masterfrom
lguohan:droptest

Conversation

@lguohan
Copy link
Contributor

@lguohan lguohan commented Aug 3, 2020

Signed-off-by: Guohan Lu lguohan@gmail.com

- What I did
a few tests in drops_group_test fails on second run.
The reason is that /tmp/dropstat is not cleaned, the first
run leave some state in the folder which cause the subsequent
run to fail.

The fix is the always clean up the folder.

- How I did it
The fix is the always clean up the folder.

- How to verify it
run python setup.py test multiple times.

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

@lguohan lguohan requested review from daall and jleveque August 3, 2020 06:31
jleveque
jleveque previously approved these changes Aug 3, 2020
Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

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

I'm not familiar with the logic of the test itself, but the change looks good and makes sense.

a few tests in drops_group_test fails on second run.
The reason is that /tmp/dropstat is not cleaned, the first
run leave some state in the folder which cause the subsequent
run to fail.

The fix is the always clean up the folder.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 3, 2020

This pull request fixes 1 alert when merging e4a0c7e74e62843f8a8946b17f8acfbdb02f92fe into c0c3cce - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@lguohan
Copy link
Contributor Author

lguohan commented Aug 3, 2020

test failure is not related this pr.

@lguohan lguohan merged commit c9d3550 into sonic-net:master Aug 3, 2020
@lguohan lguohan deleted the droptest branch August 3, 2020 15:23
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
1. remove container feature table
2. do not generate feature entry if the feature is not included
   in the image
3. rename ENABLE_* to INCLUDE_* for better clarity
4. rename feature status to feature state
5. [submodule]: update sonic-utilities

* 9700e45 2020-08-03 | [show/config]: combine feature and container feature cli (sonic-net#1015) (HEAD, origin/master, origin/HEAD) [lguohan]
* c9d3550 2020-08-03 | [tests]: fix drops_group_test failure on second run (sonic-net#1023) [lguohan]
* dfaae69 2020-08-03 | [lldpshow]: Fix input device is not a TTY error (sonic-net#1016) [Arun Saravanan Balachandran]
* 216688e 2020-08-02 | [tests]: rename sonic-utilitie-tests to tests (sonic-net#1022) [lguohan]

Signed-off-by: Guohan Lu <lguohan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants