mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 21:10:20 +00:00
switch socket recv print for stress test
This commit is contained in:
@@ -26,6 +26,16 @@ class TestCase(TCActionBase.CommonTCActionBase):
|
||||
self.result_cntx = TCActionBase.ResultCheckContext(self, test_env, self.tc_name)
|
||||
pass
|
||||
|
||||
def cleanup(self):
|
||||
checker_stings = []
|
||||
test_action_strings = []
|
||||
for i in range(self.sta_number + 1):
|
||||
checker_stings.append("R SSC%s C +RECVPRINT:1" % (i+1))
|
||||
test_action_strings.append("SSC SSC%s soc -R -o 1" % (i+1))
|
||||
fail_string = "Fail, Fail to turn on recv print"
|
||||
self.load_and_exe_one_step(checker_stings, test_action_strings, fail_string)
|
||||
pass
|
||||
|
||||
def execute(self):
|
||||
TCActionBase.TCActionBase.execute(self)
|
||||
self.result_cntx.start()
|
||||
@@ -55,6 +65,15 @@ class TestCase(TCActionBase.CommonTCActionBase):
|
||||
if self.load_and_exe_one_step(checker_stings, test_action_string, fail_string) is False:
|
||||
return
|
||||
|
||||
# switch off recv print
|
||||
checker_stings = []
|
||||
test_action_strings = []
|
||||
for i in range(self.sta_number + 1):
|
||||
checker_stings.append("R SSC%s C +RECVPRINT:0" % (i+1))
|
||||
test_action_strings.append("SSC SSC%s soc -R -o 0" % (i+1))
|
||||
fail_string = "Fail, Fail to turn off recv print"
|
||||
self.load_and_exe_one_step(checker_stings, test_action_strings, fail_string)
|
||||
|
||||
# step1 set ap on SSC1, create server
|
||||
checker_stings = ["R SSC1 C +MODE:OK"]
|
||||
test_action_string = ["SSCC SSC1 op -S -o 2"]
|
||||
|
Reference in New Issue
Block a user