Skip to content

Commit

Permalink
revert unit test tests/test_clear_tag (sonic-net#2934)
Browse files Browse the repository at this point in the history
Revert test case due to frequent failure in azp introduced in PR sonic-net#2849
Signed-off-by: Mai Bui <maibui@microsoft.com>
  • Loading branch information
maipbui authored and dgsudharsan committed Aug 30, 2023
1 parent a5ff8f2 commit 77cbc88
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/intfstat_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import os
import traceback
import subprocess
import show.main as show
import clear.main as clear

Expand Down Expand Up @@ -212,28 +211,6 @@ def test_alias_mode(self):
assert interface in result_lines[i+2]
os.environ["SONIC_CLI_IFACE_MODE"] = "default"

def test_clear_tag(self):
cmd0 = ["intfstat", "-c"]
subprocess.Popen(cmd0, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)

cmd1 = ["intfstat", "-c", '-t', 'test']
subprocess.Popen(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
cmd2 = ["intfstat", '-t', 'test']
p2 = subprocess.Popen(cmd2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
output2 = p2.communicate()[0]
print(output2)
assert show_interfaces_counters_rif_clear in output2

cmd3 = ["intfstat", "-c", '-t', 'test']
subprocess.Popen(cmd3, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
cmd4 = ["intfstat", '-t', 'test']
p4 = subprocess.Popen(cmd4, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
output4 = p4.communicate()[0]
print(output4)
assert show_interfaces_counters_rif_clear in output4

show.run_command(["intfstat", "-D"])

@classmethod
def teardown_class(cls):
print("TEARDOWN")
Expand Down

0 comments on commit 77cbc88

Please sign in to comment.