You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function clear_counter has dut.shell used to clear the counters. The shell, however, has in-built sudo usage, and hence needs to be replaced with dut.command to ensure counters with and without sudo are cleared.
Results you see
The SUDO counters are cleared using this function. Needs to be replaced with dut.command.
Results you expected to see
The normal counters (without sudo) and sudo counters needs to be cleared. Right now, only sudo counters are getting cleared.
Is it platform specific
generic
Relevant log output
No response
Output of show version
No response
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered:
@prsunny@qiluo-msft I am feeling that there might be a gap between the design and test infrastructure. How do we find a way to close/prevent such gap going forward?
@amitpawar12 Could you explain more details about "The normal counters (without sudo) and sudo counters needs to be cleared". Are you able to reproduce the difference by 2 commands on sonic directly? not by any sonic-mgmt testcase.
Issue Description
Function clear_counter has dut.shell used to clear the counters. The shell, however, has in-built sudo usage, and hence needs to be replaced with dut.command to ensure counters with and without sudo are cleared.
Results you see
The SUDO counters are cleared using this function. Needs to be replaced with dut.command.
Results you expected to see
The normal counters (without sudo) and sudo counters needs to be cleared. Right now, only sudo counters are getting cleared.
Is it platform specific
generic
Relevant log output
No response
Output of
show version
No response
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: