test_l3_longevity.py : modified to be a float minus a float

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-09-07 14:57:08 -06:00
parent 426ed83005
commit 05a419315a
2 changed files with 6 additions and 6 deletions

View File

@@ -800,8 +800,8 @@ class L3VariableTime(Realm):
if xtop_reported:
try:
xtop = split_row[7]
print("xtop {xtop}".format(xtop=xtop))
channel_utilization = 100 - float(xtop)
print("xtop 5g {xtop}".format(xtop=xtop))
channel_utilization = float(100) - float(xtop)
print("channel_utilization {utilization}".format(utilization=channel_utilization))
except:
print("detected chanspec with reading chanim_stats, failed reading xtop")
@@ -904,9 +904,9 @@ class L3VariableTime(Realm):
if xtop_reported:
try:
xtop = split_row[7]
print("xtop {xtop}".format(xtop=xtop))
channel_utilization = 100 - float(xtop)
print("channel_utilization {utilization}".format(utilization=channel_utilization))
print("xtop 2g {xtop}".format(xtop=xtop))
channel_utilization = float(100) - float(xtop)
print("channel_utilization 2g {utilization}".format(utilization=channel_utilization))
except:
print("detected chanspec with reading chanim_stats, failed reading xtop")
# should be only one channel utilization

View File

@@ -216,7 +216,7 @@
" --max_stations_2 32 --max_stations_5 32 --max_stations_dual 100 --radio2 1.1.wiphy1",
" --radio5 1.1.wiphy2 --set 'Basic Client Connectivity' 1",
" --set 'Multi Band Performance' 1 --set 'Stability' 0 --set 'Multi-Station Throughput vs Pkt Size' 0,",
" --set 'Throughput vs Pkt Size' 1 --set 'Capacity' 1 --set 'Band-Steering' 1 --set 'Skip 2.4 Ghz Tests' 1",
" --set 'Throughput vs Pkt Size' 1 --set 'Capacity' 1 --set 'Band-Steering' 0 --set 'Skip 2.4 Ghz Tests' 1",
" --pull_report --local_lf_report_dir REPORT_PATH --test_tag 'ATH10K(9984)'",
" --test_rig TEST_RIG",
" --set DUT_SET_NAME"