diff options
author | Snild Dolkow <snild@sony.com> | 2020-10-07 08:16:25 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-10-07 08:16:25 +0000 |
commit | 2a340149a6ea44461a936d529c6c60c6d6a8927d (patch) | |
tree | 687c1579dfa46edb1c1fefbd4e281c590455cc6a | |
parent | 1f77f21419ab5a001029e284ff2af092de7992ea (diff) | |
parent | 1ef9b569e53cad9b0f13aa8ca8c410c164aa65b1 (diff) | |
download | vndk-2a340149a6ea44461a936d529c6c60c6d6a8927d.tar.gz |
Disable compression in AdbPull() am: cfcccf314d am: 1ef9b569e5
Original change: https://android-review.googlesource.com/c/platform/test/vts-testcase/vndk/+/1448915
Change-Id: I41820a7f1fda9939ced129d3174c6d25fdfec8be
-rw-r--r-- | utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |