tests/run-tests.py
changeset 1220 757cf8d4724b
parent 1219 cefcbbc5502c
child 1221 3a049b21a05b
--- a/tests/run-tests.py	Thu Feb 14 11:33:19 2013 +0000
+++ b/tests/run-tests.py	Sat Mar 23 14:43:30 2013 +0000
@@ -1244,8 +1244,7 @@
         checktools()
 
         if len(args) == 0:
-            args = os.listdir(".")
-        args.sort()
+            args = sorted(os.listdir("."))
 
     tests = args
 
@@ -1277,6 +1276,9 @@
         # can't remove on solaris
         os.environ['HG'] = ''
         del os.environ['HG']
+    if 'HGPROF' in os.environ:
+        os.environ['HGPROF'] = ''
+        del os.environ['HGPROF']
 
     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
     TESTDIR = os.environ["TESTDIR"] = os.getcwd()