run test in tr398/tr398v2

Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
This commit is contained in:
karthikaeyetea
2022-12-19 11:28:12 +05:30
parent c0f519f8d5
commit 0eb5a5715d
4 changed files with 108 additions and 34 deletions

View File

@@ -25,8 +25,8 @@ from datetime import datetime
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
wifi_monitor = importlib.import_module("py-json.wifi_monitor_profile")
WiFiMonitor = wifi_monitor.WifiMonitor
wifi_monitor_profile = importlib.import_module("py-json.wifi_monitor_profile")
WiFiMonitor = wifi_monitor_profile.WifiMonitor
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
LFCliBase = lfcli_base.LFCliBase
realm = importlib.import_module("py-json.realm")
@@ -48,7 +48,7 @@ class LfPcap(Realm):
_debug_on=False
):
# uncomment the follwoing line to use wifi monitor functions
# super().__init__(lfclient_host=host, lfclient_port=port, debug_=_debug_on)
super().__init__(lfclient_host=host, lfclient_port=port, debug_=_debug_on)
self.host = host,
self.port = port
self.debug = _debug_on
@@ -63,7 +63,7 @@ class LfPcap(Realm):
self.remote_cap_host = _live_remote_cap_host
self.remote_cap_interface = _live_remote_cap_interface
# uncomment the follwoing line to use wifi monitor functions
# self.wifi_monitor = WiFiMonitor(self.lfclient_url, local_realm=self, debug_=self.debug)
self.wifi_monitor = WiFiMonitor(self.lfclient_url, local_realm=self, debug_=self.debug)
def read_pcap(self, pcap_file, apply_filter=None):
self.pcap_file = pcap_file

View File

@@ -324,6 +324,7 @@ class TR398v2Test(cvtest):
self.sets = sets
self.local_lf_report_dir = local_lf_report_dir
self.test_rig = test_rig
self.blob_text = "TR-398v2-"
def setup(self):
# Nothing to do at this time.
@@ -334,7 +335,7 @@ class TR398v2Test(cvtest):
time.sleep(2)
self.sync_cv()
blob_test = "TR398v2-"
blob_test = self.blob_text
self.rm_text_blob(self.config_name, blob_test) # To delete old config with same name
self.show_text_blob(None, None, False)