Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable' into beta-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Dec 22, 2016
2 parents 332c9d2 + 87491bf commit 1b76a27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pwnlib/adb/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,6 @@ def __getattr__(self, name):
>>> adb.getprop(property) == device.getprop(property)
True
"""
if name in self.__deferred_fields:
self._do_deferred_initialization()
return getattr(self, name)

with context.local(device=self):
g = globals()

Expand Down
8 changes: 7 additions & 1 deletion travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ setup_android_emulator()
# If we are running on Travis CI, and there were no changes to Android
# or ADB code, then we do not need the emulator
if [ -n "$TRAVIS" ]; then
if ! (git log --stat "$TRAVIS_COMMIT_RANGE" | grep -E "android|adb"); then
if [ -z "$TRAVIS_COMMIT_RANGE" ]; then
echo "TRAVIS_COMMIT_RANGE is empty, forcing Android Emulator installation"
elif ! git show "$TRAVIS_COMMIT_RANGE" ; then
echo "TRAVIS_COMMIT_RANGE is invalid, forcing Android Emulator installation"
elif (git log --stat "$TRAVIS_COMMIT_RANGE" | grep -iE "android|adb"); then
echo "Found Android-related commits, forcing Android Emulator installation"
else
# In order to avoid running the doctests that require the Android
# emulator, while still leaving the code intact, we remove the
# RST file that Sphinx searches.
Expand Down

0 comments on commit 1b76a27

Please sign in to comment.