# HG changeset patch # User Durham Goode # Date 1363109868 25200 # Node ID d29df508e187c655feb92959bbaca969ec622398 # Parent 192cebcd59a044b8cedcfe2db0bd0d1b5096186d tests: fix test-profile to not depend on HGPROF environment variable The test-profile test would fail if the user had HGPROF set to another profiler in their environment. This fix makes the test independent of that environment variable. Reverts the previous attempt to fix this, which was not cross platoform. [ original upstream message ] diff -r 192cebcd59a0 -r d29df508e187 tests/run-tests.py --- a/tests/run-tests.py Mon Oct 15 23:28:45 2012 +0200 +++ b/tests/run-tests.py Tue Mar 12 10:37:48 2013 -0700 @@ -1277,6 +1277,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()