mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 747599 - SUT agent: follow symlinks in pushDir. r=jmaher
This commit is contained in:
parent
c9ab5073ae
commit
2b40dddc9a
@ -219,7 +219,7 @@ class DeviceManagerADB(DeviceManager):
|
||||
self.useZip = False
|
||||
self.pushDir(localDir, remoteDir)
|
||||
else:
|
||||
for root, dirs, files in os.walk(localDir, followlinks='true'):
|
||||
for root, dirs, files in os.walk(localDir, followlinks=True):
|
||||
relRoot = os.path.relpath(root, localDir)
|
||||
for file in files:
|
||||
localFile = os.path.join(root, file)
|
||||
|
@ -407,7 +407,7 @@ class DeviceManagerSUT(DeviceManager):
|
||||
# failure: None
|
||||
def pushDir(self, localDir, remoteDir):
|
||||
if (self.debug >= 2): print "pushing directory: %s to %s" % (localDir, remoteDir)
|
||||
for root, dirs, files in os.walk(localDir):
|
||||
for root, dirs, files in os.walk(localDir, followlinks=True):
|
||||
parts = root.split(localDir)
|
||||
for file in files:
|
||||
remoteRoot = remoteDir + '/' + parts[1]
|
||||
@ -428,7 +428,7 @@ class DeviceManagerSUT(DeviceManager):
|
||||
# success: True
|
||||
# failure: False
|
||||
def dirExists(self, dirname):
|
||||
match = ".*" + dirname + "$"
|
||||
match = ".*" + dirname.replace('^', '\^') + "$"
|
||||
dirre = re.compile(match)
|
||||
try:
|
||||
data = self.runCmds(['cd ' + dirname, 'cwd'])
|
||||
|
Loading…
Reference in New Issue
Block a user