Skip to content

Commit 55a68b0

Browse files
committed
Check for WARNING included in XML by uiautomator
- Version 5.4.1
1 parent 1496230 commit 55a68b0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

AndroidViewClient/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='5.4.0',
6+
version='5.4.1',
77
description='''AndroidViewClient is a 100% pure python tool that
88
simplifies test script creation providing higher level operations and the ability of
99
obtaining the tree of Views present at any given moment on the device or emulator screen.

AndroidViewClient/src/com/dtmilano/android/viewclient.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '5.3.0'
21+
__version__ = '5.4.1'
2222

2323
import sys
2424
import warnings
@@ -1882,6 +1882,9 @@ def dump(self, window=-1, sleep=1):
18821882
dumpedToDevTtyRE = re.compile('</hierarchy>[\n\S]*UI hierchary dumped to: /dev/tty.*', re.MULTILINE)
18831883
if dumpedToDevTtyRE.search(received):
18841884
received = re.sub(dumpedToDevTtyRE, '</hierarchy>', received)
1885+
# API19 seems to send this warning as part of the XML.
1886+
# Let's remove it if present
1887+
received = received.replace('WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.\r\n', '')
18851888
if DEBUG_RECEIVED:
18861889
print >>sys.stderr, "received=", received
18871890
if re.search('\[: not found', received):

0 commit comments

Comments
 (0)