adb: be more permissive in test_push_error_reporting.

am: 79ce3fe7db

Change-Id: I1239b5af85edca9ae6fa1a38f755b5707bbc614b
This commit is contained in:
Josh Gao 2016-11-29 18:18:49 +00:00 committed by android-build-merger
commit b6e9e5ddde

View file

@ -890,7 +890,8 @@ class FileOperationsTest(DeviceTest):
except subprocess.CalledProcessError as e:
output = e.output
self.assertIn('Permission denied', output)
self.assertTrue('Permission denied' in output or
'Read-only file system' in output)
def _test_pull(self, remote_file, checksum):
tmp_write = tempfile.NamedTemporaryFile(mode='wb', delete=False)