summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnild Dolkow <snild@sony.com>2020-10-07 07:56:21 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-10-07 07:56:21 +0000
commit1ef9b569e53cad9b0f13aa8ca8c410c164aa65b1 (patch)
tree687c1579dfa46edb1c1fefbd4e281c590455cc6a
parent3ac8554a08e81b9805c5e59f00464b3c4e483831 (diff)
parentcfcccf314d6ebd2d641205684ad4c69cba741789 (diff)
downloadvndk-1ef9b569e53cad9b0f13aa8ca8c410c164aa65b1.tar.gz
Disable compression in AdbPull() am: cfcccf314d
Original change: https://android-review.googlesource.com/c/platform/test/vts-testcase/vndk/+/1448915 Change-Id: I8051a61c50fd6ef840945a3a67085e2e39e602cc
-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):