From 06459ebd8f08adb2a1cfe3d149fdc61d91ed6c61 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Sat, 7 Aug 2021 06:42:42 -0600 Subject: [PATCH] test_l3_longevity.py : bug fix, updated to use ap_stat_2g from ap_stat when reading the ap Signed-off-by: Chuck SmileyRekiere --- py-scripts/test_l3_longevity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-scripts/test_l3_longevity.py b/py-scripts/test_l3_longevity.py index b059e75c..6a87a371 100755 --- a/py-scripts/test_l3_longevity.py +++ b/py-scripts/test_l3_longevity.py @@ -492,7 +492,7 @@ class L3VariableTime(Realm): ss.sendline(str(self.ap_cmd_5g)) ss.expect([pexpect.TIMEOUT], timeout=1) # do not detete line, waits for output ap_stats_5g = ss.before.decode('utf-8','ignore') - print("ap_stats_5g {}".format(ap_stats_5g)) + print("ap_stats_5g from AP: {}".format(ap_stats_5g)) except: print("WARNING unable to read AP") @@ -508,8 +508,8 @@ class L3VariableTime(Realm): ss = SerialSpawn(ser) ss.sendline(str(self.ap_cmd_2g)) ss.expect([pexpect.TIMEOUT], timeout=1) # do not detete line, waits for output - ap_stats = ss.before.decode('utf-8','ignore') - print("ap_stats_2g {}".format(ap_stats_2g)) + ap_stats_2g = ss.before.decode('utf-8','ignore') + print("ap_stats_2g from AP: {}".format(ap_stats_2g)) except: print("WARNING unable to read AP")