Removed debug output WIP

This commit is contained in:
Logan Lipke
2020-11-04 17:56:38 -08:00
parent 28b54038f2
commit a6136ca329

View File

@@ -94,23 +94,23 @@ class FileIOTest(LFCliBase):
def __compare_vals(self, val_list):
passes = 0
expected_passes = 0
print(val_list)
# print(val_list)
for item in val_list:
expected_passes += 1
print(item)
# print(item)
if item[0] == 'r':
print("TEST", item,
val_list[item]['read-bps'],
self.endp_profile.min_read_rate_bps,
val_list[item]['read-bps'] > self.endp_profile.min_read_rate_bps)
# print("TEST", item,
# val_list[item]['read-bps'],
# self.endp_profile.min_read_rate_bps,
# val_list[item]['read-bps'] > self.endp_profile.min_read_rate_bps)
if val_list[item]['read-bps'] > self.endp_profile.min_read_rate_bps:
passes += 1
else:
print("TEST", item,
val_list[item]['write-bps'],
self.endp_profile.min_write_rate_bps,
val_list[item]['write-bps'] > self.endp_profile.min_write_rate_bps)
# print("TEST", item,
# val_list[item]['write-bps'],
# self.endp_profile.min_write_rate_bps,
# val_list[item]['write-bps'] > self.endp_profile.min_write_rate_bps)
if val_list[item]['write-bps'] > self.endp_profile.min_write_rate_bps:
passes += 1
@@ -155,7 +155,6 @@ class FileIOTest(LFCliBase):
self.ro_profile.create(ports=self.station_profile.station_names, sleep_time=.5, debug_=self.debug,
suppress_related_commands_=None)
def start(self, print_pass=False, print_fail=False):
temp_stas = self.sta_list.copy()
#temp_stas.append(self.local_realm.name_to_eid(self.upstream_port)[2])
@@ -292,7 +291,7 @@ python3 ./test_fileio.py --upstream_port eth1 --fio_type fe_nfs4 --min_read 1Mbp
ip_test.stop()
if not ip_test.passes():
print(ip_test.get_fail_message())
exit(1)
# exit(1)
time.sleep(30)
ip_test.cleanup(station_list)
if ip_test.passes():