debugging
This commit is contained in:
+1
-7
@@ -751,11 +751,7 @@ class OaiCiTest():
|
|||||||
else:
|
else:
|
||||||
SSH.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "dumpsys telephony.registry"\' | grep -m 1 mDataConnectionState', '\$', 60)
|
SSH.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "dumpsys telephony.registry"\' | grep -m 1 mDataConnectionState', '\$', 60)
|
||||||
result = re.search('mDataConnectionState.*=(?P<state>[0-9\-]+)', SSH.getBefore())
|
result = re.search('mDataConnectionState.*=(?P<state>[0-9\-]+)', SSH.getBefore())
|
||||||
print("\n")
|
print(SSH.getBefore()) #GP debugging
|
||||||
print(SSH.getBefore())
|
|
||||||
print("\n")
|
|
||||||
print(result)
|
|
||||||
print("\n")
|
|
||||||
if result is None:
|
if result is None:
|
||||||
logging.debug('\u001B[1;37;41m mDataConnectionState Not Found! \u001B[0m')
|
logging.debug('\u001B[1;37;41m mDataConnectionState Not Found! \u001B[0m')
|
||||||
lock.acquire()
|
lock.acquire()
|
||||||
@@ -765,8 +761,6 @@ class OaiCiTest():
|
|||||||
lock.release()
|
lock.release()
|
||||||
break
|
break
|
||||||
mDataConnectionState = int(result.group('state'))
|
mDataConnectionState = int(result.group('state'))
|
||||||
print(mDataConnectionState)
|
|
||||||
print("\n")
|
|
||||||
if mDataConnectionState == 2:
|
if mDataConnectionState == 2:
|
||||||
logging.debug('\u001B[1mUE (' + device_id + ') Attach Completed\u001B[0m')
|
logging.debug('\u001B[1mUE (' + device_id + ') Attach Completed\u001B[0m')
|
||||||
lock.acquire()
|
lock.acquire()
|
||||||
|
|||||||
Reference in New Issue
Block a user