From ce8f2cdcd09b24e3deb88ffefb071752f79ab1bb Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 9 Dec 2015 14:20:23 -0800 Subject: [PATCH] adb: make the test_pull_dir test actually test something. Change-Id: I8b525377557528d5bc70c44d587891fad9f739bd --- adb/test_device.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adb/test_device.py b/adb/test_device.py index 8d754687d..955b67a80 100644 --- a/adb/test_device.py +++ b/adb/test_device.py @@ -819,7 +819,10 @@ class FileOperationsTest(DeviceTest): self.device.pull(remote=self.DEVICE_TEMP_DIR, local=host_dir) for temp_file in temp_files: - host_path = os.path.join(host_dir, temp_file.base_name) + host_path = os.path.join( + host_dir, posixpath.basename(self.DEVICE_TEMP_DIR), + temp_file.base_name) + self._verify_local(temp_file.checksum, host_path) self.device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR]) finally: