Skip to content

Commit 303d16b

Browse files
committedSep 29, 2017
Backed out changeset 28b00bdf83a3 (bug 1403366)
1 parent b21448c commit 303d16b

File tree

6 files changed

+13
-2
lines changed

6 files changed

+13
-2
lines changed
 

‎build/automation.py.in

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class Automation(object):
199199
envVar = "DYLD_LIBRARY_PATH"
200200
dmdLibrary = "libdmd.dylib"
201201
else: # unixish
202+
env['MOZILLA_FIVE_HOME'] = xrePath
202203
dmdLibrary = "libdmd.so"
203204
if envVar in env:
204205
ldLibraryPath = ldLibraryPath + ":" + env[envVar]

‎build/unix/run-mozilla.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,13 @@ then
237237
moz_bail "Cannot execute $MOZ_PROGRAM."
238238
fi
239239
#
240+
##
241+
## Set MOZILLA_FIVE_HOME
242+
##
243+
MOZILLA_FIVE_HOME=$MOZ_DIST_BIN
244+
240245
if [ -z "$MRE_HOME" ]; then
241-
MRE_HOME=$MOZ_DIST_BIN"
246+
MRE_HOME=$MOZILLA_FIVE_HOME
242247
fi
243248
##
244249
## Set LD_LIBRARY_PATH
@@ -310,6 +315,7 @@ export GNOME_DISABLE_CRASH_DIALOG
310315

311316
if [ "$moz_debug" -eq 1 ]
312317
then
318+
echo "MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME"
313319
echo " LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
314320
if [ -n "$LD_LIBRARYN32_PATH" ]
315321
then
@@ -343,7 +349,7 @@ then
343349
echo "moz_debugger_args=$moz_debugger_args"
344350
fi
345351
#
346-
export LD_LIBRARY_PATH
352+
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
347353
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH
348354

349355
if [ $moz_debug -eq 1 ]

‎testing/gtest/rungtests.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def build_core_environment(self, env = {}):
8181
"""
8282
Add environment variables likely to be used across all platforms, including remote systems.
8383
"""
84+
env["MOZILLA_FIVE_HOME"] = self.xre_path
8485
env["MOZ_XRE_DIR"] = self.xre_path
8586
env["MOZ_GMP_PATH"] = os.pathsep.join(
8687
os.path.join(self.xre_path, p, "1.0")

‎testing/mozbase/mozrunner/mozrunner/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def test_environment(xrePath, env=None, crashreporter=True, debugger=False,
104104
preloadEnvVar = None
105105
if mozinfo.isUnix:
106106
envVar = "LD_LIBRARY_PATH"
107+
env['MOZILLA_FIVE_HOME'] = xrePath
107108
dmdLibrary = "libdmd.so"
108109
preloadEnvVar = "LD_PRELOAD"
109110
elif mozinfo.isMac:

‎testing/remotecppunittests.py

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def build_environment(self):
107107
env['LD_LIBRARY_PATH'] = self.remote_bin_dir
108108
env["TMPDIR"] = self.remote_tmp_dir
109109
env["HOME"] = self.remote_home_dir
110+
env["MOZILLA_FIVE_HOME"] = self.remote_home_dir
110111
env["MOZ_XRE_DIR"] = self.remote_bin_dir
111112
if self.options.add_env:
112113
for envdef in self.options.add_env:

‎testing/runcppunittests.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def build_core_environment(self, env={}):
8484
"""
8585
Add environment variables likely to be used across all platforms, including remote systems.
8686
"""
87+
env["MOZILLA_FIVE_HOME"] = self.xre_path
8788
env["MOZ_XRE_DIR"] = self.xre_path
8889
# TODO: switch this to just abort once all C++ unit tests have
8990
# been fixed to enable crash reporting

0 commit comments

Comments
 (0)
Failed to load comments.