Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b34b448b authored by Dan Albert's avatar Dan Albert Committed by android-build-merger
Browse files

Merge "Fix test following -p removal." am: 5e49fbc5 am: 3039d9d4

am: 222a69bc

Change-Id: I9c64b7b9fba10e73f71a17337231973c7bb031b1
parents b463a37a 222a69bc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1144,10 +1144,16 @@ class FileOperationsTest(DeviceTest):
            temp_files = make_random_host_files(in_dir=full_dir_path, num_files=32)

            # Clean up any trash on the device.
            device = adb.get_device(product=base_dir)
            device = adb.get_device()  # pylint: disable=no-member
            device.shell(['rm', '-rf', self.DEVICE_TEMP_DIR])

            old_product_out = os.environ.get('ANDROID_PRODUCT_OUT')
            os.environ['ANDROID_PRODUCT_OUT'] = base_dir
            device.sync('data')
            if old_product_out is None:
                del os.environ['ANDROID_PRODUCT_OUT']
            else:
                os.environ['ANDROID_PRODUCT_OUT'] = old_product_out

            # Confirm that every file on the device mirrors that on the host.
            for temp_file in temp_files: