mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 03:48:09 +00:00
WIFI-7705 - Added memory profile attached into json format (#592)
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -766,7 +766,7 @@ def get_ap_logs(request, get_apnos, get_configuration, run_lf):
|
||||
ap_ssh.run_generic_command(cmd="logger start testcase: " + instance_name)
|
||||
|
||||
# Adding memory Profile code before every test start
|
||||
output = ap_ssh.run_generic_command(cmd="ucode /usr/share/ucentral/sysinfo.uc")
|
||||
output = ap_ssh.get_memory_profile()
|
||||
allure.attach(name="ucode /usr/share/ucentral/sysinfo.uc ", body=str(output))
|
||||
|
||||
def collect_logs():
|
||||
@@ -778,7 +778,7 @@ def get_ap_logs(request, get_apnos, get_configuration, run_lf):
|
||||
allure.attach(name='logread', body=str(ap_logs))
|
||||
|
||||
# Adding memory Profile code after every test completion
|
||||
output = ap_ssh.run_generic_command(cmd="ucode /usr/share/ucentral/sysinfo.uc")
|
||||
output = ap_ssh.get_memory_profile()
|
||||
allure.attach(name="ucode /usr/share/ucentral/sysinfo.uc ", body=str(output))
|
||||
|
||||
request.addfinalizer(collect_logs)
|
||||
|
||||
Reference in New Issue
Block a user