mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-18 02:54:56 +00:00
lf_qa.py debug information on the DUT information
1. The naming for the empty DUT strings changed. The DUT is taken from the kpi, this is a step closer to a fix of wanting the latest DUT information from the Database yet not full proof. Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -770,6 +770,7 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url)
|
|||||||
self.logger.info("test: {} skipped".format(test))
|
self.logger.info("test: {} skipped".format(test))
|
||||||
# load the default database
|
# load the default database
|
||||||
elif self.test_dict[test]['enabled'] == "TRUE":
|
elif self.test_dict[test]['enabled'] == "TRUE":
|
||||||
|
#TODO Place test interations here
|
||||||
# if args key has a value of an empty string then need to manipulate the args_list to args
|
# if args key has a value of an empty string then need to manipulate the args_list to args
|
||||||
# list does not have replace only stings do to args_list will be joined and converted to a string and placed
|
# list does not have replace only stings do to args_list will be joined and converted to a string and placed
|
||||||
# in args. Then the replace below will work.
|
# in args. Then the replace below will work.
|
||||||
|
|||||||
@@ -78,11 +78,20 @@ class csv_sqlite_dash():
|
|||||||
def get_dut_info(self):
|
def get_dut_info(self):
|
||||||
dut_info_df = pd.DataFrame()
|
dut_info_df = pd.DataFrame()
|
||||||
#try:
|
#try:
|
||||||
|
print("DUT: {DUT} SW:{SW} HW:{HW} SN:{SN}"
|
||||||
|
.format(DUT=self.dut_model_num_list,SW=self.dut_sw_version_list,HW=self.dut_hw_version_list,SN=self.dut_serial_num_list))
|
||||||
|
|
||||||
dut_info_df['DUT'] = self.dut_model_num_list[0]
|
dut_info_df['DUT'] = self.dut_model_num_list[0]
|
||||||
dut_info_df['SW version'] = self.dut_sw_version_list[0]
|
dut_info_df['SW version'] = self.dut_sw_version_list[0]
|
||||||
dut_info_df['HW version'] = self.dut_hw_version_list[0]
|
dut_info_df['HW version'] = self.dut_hw_version_list[0]
|
||||||
dut_info_df['Serial'] = self.dut_serial_num_list[0]
|
dut_info_df['Serial'] = self.dut_serial_num_list[0]
|
||||||
print("DUT: {df}".format(df=dut_info_df))
|
print("DUT: {DUT} SW:{SW} HW:{HW} SN:{SN}"
|
||||||
|
.format(DUT=self.dut_model_num_list,SW=self.dut_sw_version_list,HW=self.dut_hw_version_list,SN=self.dut_serial_num_list))
|
||||||
|
|
||||||
|
print("DUT df_na: {df}".format(df=dut_info_df))
|
||||||
|
dut_info_df = dut_info_df.dropna()
|
||||||
|
print("DUT df: {df}".format(df=dut_info_df))
|
||||||
|
|
||||||
#except:
|
#except:
|
||||||
# dut_info_df['DUT'] = 'NA'
|
# dut_info_df['DUT'] = 'NA'
|
||||||
# dut_info_df['SW version'] = 'NA'
|
# dut_info_df['SW version'] = 'NA'
|
||||||
|
|||||||
Reference in New Issue
Block a user