summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnild Dolkow <snild@sony.com>2020-10-07 09:18:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-10-07 09:18:49 +0000
commitd10eb9b7063115b8a25509b67167425037e73bac (patch)
tree687c1579dfa46edb1c1fefbd4e281c590455cc6a
parent0cacfaab4fb32b2f86e92bc1a83d1d18ba3989e9 (diff)
parent86bc52725f8ef0975124a0bce7d8a39fd6c22f61 (diff)
downloadvndk-d10eb9b7063115b8a25509b67167425037e73bac.tar.gz
Disable compression in AdbPull() am: cfcccf314d am: 1ef9b569e5 am: 2a340149a6 am: 86bc52725f
Original change: https://android-review.googlesource.com/c/platform/test/vts-testcase/vndk/+/1448915 Change-Id: I11db8705b8fd93e7a212516a5e8bdf15bbf7453d
-rw-r--r--utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 5fae388..8bf00f3 100644
--- a/utils.py
+++ b/utils.py
@@ -32,7 +32,10 @@ class AndroidDevice(object):
def AdbPull(self, src, dst):
cmd = ["adb", "-s", self._serial_number, "pull", src, dst]
- subprocess.check_call(cmd, shell=False, stdin=subprocess.PIPE,
+ env = os.environ.copy()
+ if "ADB_COMPRESSION" not in env:
+ env["ADB_COMPRESSION"] = "0"
+ subprocess.check_call(cmd, shell=False, env=env, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def Execute(self, *args):