"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testing/xpcshell/runxpcshelltests.py" between
firefox-68.4.0esr.source.tar.xz and firefox-68.4.1esr.source.tar.xz

About: Firefox is Mozilla’s standalone Web browser. Extended Support Release. Source code.

runxpcshelltests.py  (firefox-68.4.0esr.source.tar.xz):runxpcshelltests.py  (firefox-68.4.1esr.source.tar.xz)
skipping to change at line 360 skipping to change at line 360
self.env["XPCSHELL_TEST_TEMP_DIR"] = tempDir self.env["XPCSHELL_TEST_TEMP_DIR"] = tempDir
if self.interactive: if self.interactive:
self.log.info("temp dir is %s" % tempDir) self.log.info("temp dir is %s" % tempDir)
return tempDir return tempDir
def setupPluginsDir(self): def setupPluginsDir(self):
if not os.path.isdir(self.pluginsPath): if not os.path.isdir(self.pluginsPath):
return None return None
pluginsDir = mkdtemp(prefix='xpc-plugins-', dir=self._rootTempDir) pluginsDir = mkdtemp(prefix='xpc-plugins-', dir=self._rootTempDir)
retries = 0
while not os.path.isdir(pluginsDir) and retries < 5:
self.log.info("plugins temp directory %s missing; waiting..." % plug
insDir)
time.sleep(1)
retries += 1
# shutil.copytree requires dst to not exist. Deleting the tempdir # shutil.copytree requires dst to not exist. Deleting the tempdir
# would make a race condition possible in a concurrent environment, # would make a race condition possible in a concurrent environment,
# so we are using dir_utils.copy_tree which accepts an existing dst # so we are using dir_utils.copy_tree which accepts an existing dst
dir_util.copy_tree(self.pluginsPath, pluginsDir) dir_util.copy_tree(self.pluginsPath, pluginsDir)
if self.interactive: if self.interactive:
self.log.info("plugins dir is %s" % pluginsDir) self.log.info("plugins dir is %s" % pluginsDir)
return pluginsDir return pluginsDir
def setupProfileDir(self): def setupProfileDir(self):
""" """
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)