[PATCH] tests: remove python link during cleanup
Sean Farley
sean.michael.farley at gmail.com
Fri Nov 15 19:35:11 CST 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1384462134 18000
# Thu Nov 14 15:48:54 2013 -0500
# Node ID 38c5f62b663a4e1f2d0a301fbfd8aa375caa218d
# Parent c38c3fdc8b9317ba09e03ab09364c3800da7c50c
tests: remove python link during cleanup
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -415,10 +415,15 @@
def killdaemons(pidfile):
return killmod.killdaemons(pidfile, tryhard=False, remove=True,
logfn=vlog)
def cleanup(options):
+ pyexename = sys.platform == 'win32' and 'python.exe' or 'python'
+ mypython = os.path.join(BINDIR, pyexename)
+ if os.path.isfile(mypython):
+ os.remove(mypython)
+
if not options.keep_tmpdir:
vlog("# Cleaning up HGTMP", HGTMP)
shutil.rmtree(HGTMP, True)
def usecorrectpython():
More information about the Mercurial-devel
mailing list