From 35d8390dfa1d830c20dd2328b3f94f92dfeb91eb Mon Sep 17 00:00:00 2001 From: Mai Bui Date: Mon, 31 Jul 2023 13:24:27 -0400 Subject: [PATCH] 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 --- tests/intfstat_test.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tests/intfstat_test.py b/tests/intfstat_test.py index fa3af5e2be..ab7e095856 100644 --- a/tests/intfstat_test.py +++ b/tests/intfstat_test.py @@ -1,7 +1,6 @@ import sys import os import traceback -import subprocess import show.main as show import clear.main as clear @@ -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")