mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
lf_check.py : added support for infinite timeout
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
"CT-US-001_lf_ap_auto_test": {
|
"CT-US-001_lf_ap_auto_test": {
|
||||||
"enabled": "TRUE",
|
"enabled": "TRUE",
|
||||||
"command": "lf_ap_auto_test.py",
|
"command": "lf_ap_auto_test.py",
|
||||||
"timeout":"1200",
|
"timeout":"0",
|
||||||
"iterations":"1",
|
"iterations":"1",
|
||||||
"args": "",
|
"args": "",
|
||||||
"args_list":[
|
"args_list":[
|
||||||
|
|||||||
@@ -1059,7 +1059,10 @@ http://{blog}:2368""".format(blog=self.blog_host)
|
|||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
# if there is a better solution please propose, the TIMEOUT Result is different then FAIL
|
# if there is a better solution please propose, the TIMEOUT Result is different then FAIL
|
||||||
try:
|
try:
|
||||||
|
if int(self.test_timeout != 0):
|
||||||
process.wait(timeout=int(self.test_timeout))
|
process.wait(timeout=int(self.test_timeout))
|
||||||
|
else:
|
||||||
|
process.wait()
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
process.terminate()
|
process.terminate()
|
||||||
self.test_result = "TIMEOUT"
|
self.test_result = "TIMEOUT"
|
||||||
@@ -1418,7 +1421,7 @@ Example :
|
|||||||
print("lf_radio_df:: {lf_radio_df}".format(lf_radio_df=lf_radio_df))
|
print("lf_radio_df:: {lf_radio_df}".format(lf_radio_df=lf_radio_df))
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
print("print_exc():")
|
print("print_exc(): {error}".format(error=error))
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
lf_radio_df = pd.DataFrame()
|
lf_radio_df = pd.DataFrame()
|
||||||
print("get_lanforge_radio_json exception, no radio data")
|
print("get_lanforge_radio_json exception, no radio data")
|
||||||
|
|||||||
Reference in New Issue
Block a user