Skip to content

Commit 35d8390

Browse files
maipbuiStormLiangMS
authored andcommitted
revert unit test tests/test_clear_tag (#2934)
Revert test case due to frequent failure in azp introduced in PR #2849 Signed-off-by: Mai Bui <[email protected]>
1 parent c7ff527 commit 35d8390

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/intfstat_test.py

-23
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import os
33
import traceback
4-
import subprocess
54
import show.main as show
65
import clear.main as clear
76

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

215-
def test_clear_tag(self):
216-
cmd0 = ["intfstat", "-c"]
217-
subprocess.Popen(cmd0, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
218-
219-
cmd1 = ["intfstat", "-c", '-t', 'test']
220-
subprocess.Popen(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
221-
cmd2 = ["intfstat", '-t', 'test']
222-
p2 = subprocess.Popen(cmd2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
223-
output2 = p2.communicate()[0]
224-
print(output2)
225-
assert show_interfaces_counters_rif_clear in output2
226-
227-
cmd3 = ["intfstat", "-c", '-t', 'test']
228-
subprocess.Popen(cmd3, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
229-
cmd4 = ["intfstat", '-t', 'test']
230-
p4 = subprocess.Popen(cmd4, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
231-
output4 = p4.communicate()[0]
232-
print(output4)
233-
assert show_interfaces_counters_rif_clear in output4
234-
235-
show.run_command(["intfstat", "-D"])
236-
237214
@classmethod
238215
def teardown_class(cls):
239216
print("TEARDOWN")

0 commit comments

Comments
 (0)