Commit 670ca687 authored by hardy's avatar hardy

logging debug data from initializeUE

parent 8ccf3208
...@@ -280,6 +280,7 @@ class OaiCiTest(): ...@@ -280,6 +280,7 @@ class OaiCiTest():
#RH quick add-on to integrate cots control defined by yaml #RH quick add-on to integrate cots control defined by yaml
#if device_id exists in yaml dictionary, we execute the new procedure defined in cots_ue class #if device_id exists in yaml dictionary, we execute the new procedure defined in cots_ue class
#otherwise we use the legacy procedure #otherwise we use the legacy procedure
logging.debug('Device id ' + str(device_id) + ', in COTS UE dict : ',str(COTS_UE.Check_Exists(device_id)))
if COTS_UE.Check_Exists(device_id): if COTS_UE.Check_Exists(device_id):
#switch device to Airplane mode ON (ie Radio OFF) #switch device to Airplane mode ON (ie Radio OFF)
COTS_UE.Set_Airplane(device_id, 'ON') COTS_UE.Set_Airplane(device_id, 'ON')
...@@ -1115,6 +1116,9 @@ class OaiCiTest(): ...@@ -1115,6 +1116,9 @@ class OaiCiTest():
if self.ADBCentralized: if self.ADBCentralized:
SSH.command('adb devices', '\$', 15) SSH.command('adb devices', '\$', 15)
self.UEDevices = re.findall("\\\\r\\\\n([A-Za-z0-9]+)\\\\tdevice",SSH.getBefore()) self.UEDevices = re.findall("\\\\r\\\\n([A-Za-z0-9]+)\\\\tdevice",SSH.getBefore())
#report number and id of devices found
msg = "UEDevices found by GetAllUEDevices : " + " ".join(self.UEDevices)
logging.debug(msg)
SSH.close() SSH.close()
else: else:
if (os.path.isfile('./phones_list.txt')): if (os.path.isfile('./phones_list.txt')):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment