adb: be more permissive in test_push_error_reporting.
Be agnostic to whether /system is writable when testing push error reporting. Test: python test_device.py Change-Id: I1d03564fa35442c20e2c96a7f5b56d39868efc52
This commit is contained in:
parent
05a3abfef3
commit
79ce3fe7db
1 changed files with 2 additions and 1 deletions
|
|
@ -890,7 +890,8 @@ class FileOperationsTest(DeviceTest):
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
output = e.output
|
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):
|
def _test_pull(self, remote_file, checksum):
|
||||||
tmp_write = tempfile.NamedTemporaryFile(mode='wb', delete=False)
|
tmp_write = tempfile.NamedTemporaryFile(mode='wb', delete=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue