Show More
@@ -905,8 +905,6 b' def runone(options, test):' | |||||
905 |
|
905 | |||
906 | vlog("# Test", test) |
|
906 | vlog("# Test", test) | |
907 |
|
907 | |||
908 | createhgrc(HGRCPATH, options) |
|
|||
909 |
|
||||
910 | if os.path.exists(err): |
|
908 | if os.path.exists(err): | |
911 | os.remove(err) # Remove any previous output files |
|
909 | os.remove(err) # Remove any previous output files | |
912 |
|
910 | |||
@@ -935,8 +933,11 b' def runone(options, test):' | |||||
935 | env["HGPORT"] = str(options.port) |
|
933 | env["HGPORT"] = str(options.port) | |
936 | env["HGPORT1"] = str(options.port + 1) |
|
934 | env["HGPORT1"] = str(options.port + 1) | |
937 | env["HGPORT2"] = str(options.port + 2) |
|
935 | env["HGPORT2"] = str(options.port + 2) | |
|
936 | env["HGRCPATH"] = os.path.join(HGTMP, '.hgrc') | |||
938 | env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids') |
|
937 | env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids') | |
939 |
|
938 | |||
|
939 | createhgrc(env['HGRCPATH'], options) | |||
|
940 | ||||
940 | if options.time: |
|
941 | if options.time: | |
941 | starttime = time.time() |
|
942 | starttime = time.time() | |
942 | ret, out = runner(testpath, testtmp, options, replacements, env) |
|
943 | ret, out = runner(testpath, testtmp, options, replacements, env) | |
@@ -1167,9 +1168,6 b' def runqueue(options, tests):' | |||||
1167 | break |
|
1168 | break | |
1168 |
|
1169 | |||
1169 | def runtests(options, tests): |
|
1170 | def runtests(options, tests): | |
1170 | global HGRCPATH |
|
|||
1171 | HGRCPATH = os.environ["HGRCPATH"] = os.path.join(HGTMP, '.hgrc') |
|
|||
1172 |
|
||||
1173 | try: |
|
1171 | try: | |
1174 | if INST: |
|
1172 | if INST: | |
1175 | installhg(options) |
|
1173 | installhg(options) | |
@@ -1300,7 +1298,6 b' def main():' | |||||
1300 | d = os.getenv('TMP') |
|
1298 | d = os.getenv('TMP') | |
1301 | tmpdir = tempfile.mkdtemp('', 'hgtests.', d) |
|
1299 | tmpdir = tempfile.mkdtemp('', 'hgtests.', d) | |
1302 | HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir) |
|
1300 | HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir) | |
1303 | HGRCPATH = None |
|
|||
1304 |
|
1301 | |||
1305 | os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' |
|
1302 | os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' | |
1306 | os.environ["HGMERGE"] = "internal:merge" |
|
1303 | os.environ["HGMERGE"] = "internal:merge" |
General Comments 0
You need to be logged in to leave comments.
Login now