mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 842668 - Should always use dd instead of cp in b2g reftest/mochitest;r=ahal
This commit is contained in:
parent
d6b722e0fb
commit
1e2e91e1b8
@ -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