item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend(["Not tested", "Not tested"])
item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend(["Not tested", "Not tested"])
- if item[-4] != "Not tested" and item[-2] != "Not tested" and item[-4] != 0:
- item.append(int(relative_change(float(item[-4]), float(item[-2]))))
+ if item[-2] == "Not tested":
+ pass
elif item[-4] == "Not tested":
item.append("New in CSIT-1908")
elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]:
item.append("See footnote [1]")
footnote = True
elif item[-4] == "Not tested":
item.append("New in CSIT-1908")
elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]:
item.append("See footnote [1]")
footnote = True
+ elif item[-4] != 0:
+ item.append(int(relative_change(float(item[-4]), float(item[-2]))))
if (len(item) == len(header)) and (item[-3] != "Not tested"):
tbl_lst.append(item)
if (len(item) == len(header)) and (item[-3] != "Not tested"):
tbl_lst.append(item)
if footnote:
with open(txt_file_name, 'a') as txt_file:
txt_file.writelines([
if footnote:
with open(txt_file_name, 'a') as txt_file:
txt_file.writelines([
"[1] CSIT-1908 changed test methodology of dot1q tests in "
"2n-skx testbeds, dot1q encapsulation is now used on both "
"[1] CSIT-1908 changed test methodology of dot1q tests in "
"2n-skx testbeds, dot1q encapsulation is now used on both "
" Previously dot1q was used only on a single link with the "
"other link carrying untagged Ethernet frames. This change "
" Previously dot1q was used only on a single link with the "
"other link carrying untagged Ethernet frames. This change "
" in slightly lower throughput in CSIT-1908 for these "
"tests. See release notes."
])
" in slightly lower throughput in CSIT-1908 for these "
"tests. See release notes."
])
item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend(["Not tested", "Not tested"])
item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend(["Not tested", "Not tested"])
- if item[-4] != "Not tested" and item[-2] != "Not tested" and item[-4] != 0:
- item.append(int(relative_change(float(item[-4]), float(item[-2]))))
+ if item[-2] == "Not tested":
+ pass
elif item[-4] == "Not tested":
item.append("New in CSIT-1908")
elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]:
item.append("See footnote [1]")
footnote = True
elif item[-4] == "Not tested":
item.append("New in CSIT-1908")
elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]:
item.append("See footnote [1]")
footnote = True
+ elif item[-4] != 0:
+ item.append(int(relative_change(float(item[-4]), float(item[-2]))))
if (len(item) == len(header)) and (item[-3] != "Not tested"):
tbl_lst.append(item)
if (len(item) == len(header)) and (item[-3] != "Not tested"):
tbl_lst.append(item)
if footnote:
with open(txt_file_name, 'a') as txt_file:
txt_file.writelines([
if footnote:
with open(txt_file_name, 'a') as txt_file:
txt_file.writelines([
"[1] CSIT-1908 changed test methodology of dot1q tests in "
"2n-skx testbeds, dot1q encapsulation is now used on both "
"[1] CSIT-1908 changed test methodology of dot1q tests in "
"2n-skx testbeds, dot1q encapsulation is now used on both "
" Previously dot1q was used only on a single link with the "
"other link carrying untagged Ethernet frames. This change "
" Previously dot1q was used only on a single link with the "
"other link carrying untagged Ethernet frames. This change "
" in slightly lower throughput in CSIT-1908 for these "
"tests. See release notes."
])
" in slightly lower throughput in CSIT-1908 for these "
"tests. See release notes."
])