mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 842668 - Should always use dd instead of cp in b2g reftest/mochitest;r=ahal
This commit is contained in:
parent
9ae365f1ee
commit
0ba1d9d5d0
@ -264,10 +264,7 @@ class B2GReftest(RefTest):
|
||||
|
||||
# Restore the original user.js.
|
||||
self._devicemanager._checkCmdAs(['shell', 'rm', '-f', self.userJS])
|
||||
if self._devicemanager._useDDCopy:
|
||||
self._devicemanager._checkCmdAs(['shell', 'dd', 'if=%s.orig' % self.userJS, 'of=%s' % self.userJS])
|
||||
else:
|
||||
self._devicemanager._checkCmdAs(['shell', 'cp', '%s.orig' % self.userJS, self.userJS])
|
||||
self._devicemanager._checkCmdAs(['shell', 'dd', 'if=%s.orig' % self.userJS, 'of=%s' % self.userJS])
|
||||
|
||||
# We've restored the original profile, so reboot the device so that
|
||||
# it gets picked up.
|
||||
|
@ -311,10 +311,7 @@ class B2GMochitest(Mochitest, B2GMochitestMixin):
|
||||
self.originalProfilesIni = None
|
||||
|
||||
def copyRemoteFile(self, src, dest):
|
||||
if self._dm._useDDCopy:
|
||||
self._dm._checkCmdAs(['shell', 'dd', 'if=%s' % src, 'of=%s' % dest])
|
||||
else:
|
||||
self._dm._checkCmdAs(['shell', 'cp', src, dest])
|
||||
self._dm._checkCmdAs(['shell', 'dd', 'if=%s' % src, 'of=%s' % dest])
|
||||
|
||||
def origUserJSExists(self):
|
||||
return self._dm.fileExists('/data/local/user.js.orig')
|
||||
|
Loading…
Reference in New Issue
Block a user