def combine_test_information(serial, softVer): deviceInfo = deviceMap.get_Device_info(serial) # ["SamsungNoteII","GT-N7102","ARMv7 Processor rev 0 (v7l)","1784M","1280*720","Android 4.3"] content = "[Test Information]" softVersion = "\n1. Software Version: {}".format(softVer) dut = "\n2. Device CodeName: {}".format(deviceInfo[0]) brand = "\n3. Device Module: {}".format(deviceInfo[1]) cpu = "\n4. Device CPU: {}".format(deviceInfo[2]) memory = "\n5. Device Memory: {}".format(deviceInfo[3]) res = "\n6. Device Resolution: {}".format(deviceInfo[4]) sysVer = "\n7. Android Version: {}".format(deviceInfo[5]) return content + softVersion + dut + brand + cpu + memory + res + sysVer
def get_device(fp): # fetch the device name from the log file serial = os.path.basename(fp).split("-")[1] deviveName = deviceMap.get_Device_info(serial)[0] return deviveName