Bug 927670 - Prepend lib dirs to sys.path in jit_test.py to avoid conflicts. r=terrence
authorBen Kelly <ben@wanderview.com>
Thu, 17 Oct 2013 14:37:58 -0400
changeset 165919 98620827025cb10a85588266f0bc7048193cc898
parent 165918 112e8748b75ced35fc9963f235b41ced4fa1cff0
child 165920 e1226725f67428d10e85d9547d38de135ae866a4
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs927670
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 927670 - Prepend lib dirs to sys.path in jit_test.py to avoid conflicts. r=terrence
js/src/jit-test/jit_test.py
--- a/js/src/jit-test/jit_test.py
+++ b/js/src/jit-test/jit_test.py
@@ -4,18 +4,18 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import os, posixpath, shlex, subprocess, sys, traceback
 
 def add_libdir_to_path():
     from os.path import dirname, exists, join, realpath
     js_src_dir = dirname(dirname(realpath(sys.argv[0])))
     assert exists(join(js_src_dir,'jsapi.h'))
-    sys.path.append(join(js_src_dir, 'lib'))
-    sys.path.append(join(js_src_dir, 'tests', 'lib'))
+    sys.path.insert(0, join(js_src_dir, 'lib'))
+    sys.path.insert(0, join(js_src_dir, 'tests', 'lib'))
 
 add_libdir_to_path()
 
 import jittests
 
 def main(argv):
 
     # If no multiprocessing is available, fallback to serial test execution