Ejemplo n.º 1
0
                # SN
                try:
                    mask = serialTable['MAC'] == macValue
                    serialValue = serialTable[mask]['SN'].values[0]
                    finalReport.data['DUT SN'] += [str(serialValue)]
                    snReport.data['SN'] += [str(serialValue)]
                except:
                    finalReport.data['DUT SN'] += ['No Match on Serial Table']
                    snReport.data['SN'] += [
                        'No Match on Serial Table, check log file: {log}'.
                        format(log=logName)
                    ]

                # Retrieve Detected device comport
                try:
                    detail = finalReport.get_mask_value(
                        'Detected device comport=COM', log)
                    if len(detail[0]) > 0:
                        finalReport.data['Detect device and comport'] += [
                            'PASS'
                        ]
                    else:
                        finalReport.data['Detect device and comport'] += [
                            'FAIL'
                        ]
                except:
                    finalReport.data['Detect device and comport'] += ['FAIL']

                # BLE firmware
                finalReport.check_function('ble bicmd2 072b', product, log,
                                           'BLE firmware')