Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/run-tests.py @ 4633:ff7253a0d1da
Cleanup of whitespace, indentation and line continuation.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 19 Jun 2007 08:06:37 +0200 |
parents | 860478527568 |
children | 6403f948bd6b |
comparison
equal
deleted
inserted
replaced
4632:8d46056960ab | 4633:ff7253a0d1da |
---|---|
148 os.unlink(COVERAGE_FILE) | 148 os.unlink(COVERAGE_FILE) |
149 # Create a wrapper script to invoke hg via coverage.py | 149 # Create a wrapper script to invoke hg via coverage.py |
150 os.rename(os.path.join(BINDIR, "hg"), os.path.join(BINDIR, "_hg.py")) | 150 os.rename(os.path.join(BINDIR, "hg"), os.path.join(BINDIR, "_hg.py")) |
151 f = open(os.path.join(BINDIR, 'hg'), 'w') | 151 f = open(os.path.join(BINDIR, 'hg'), 'w') |
152 f.write('#!' + sys.executable + '\n') | 152 f.write('#!' + sys.executable + '\n') |
153 f.write('import sys, os; os.execv(sys.executable, [sys.executable, '+ \ | 153 f.write('import sys, os; os.execv(sys.executable, [sys.executable, ' |
154 '"%s", "-x", "%s"] + sys.argv[1:])\n' % ( | 154 '"%s", "-x", "%s"] + sys.argv[1:])\n' % |
155 os.path.join(TESTDIR, 'coverage.py'), | 155 (os.path.join(TESTDIR, 'coverage.py'), |
156 os.path.join(BINDIR, '_hg.py'))) | 156 os.path.join(BINDIR, '_hg.py'))) |
157 f.close() | 157 f.close() |
158 os.chmod(os.path.join(BINDIR, 'hg'), 0700) | 158 os.chmod(os.path.join(BINDIR, 'hg'), 0700) |
159 python = '"%s" "%s" -x' % (sys.executable, | 159 python = '"%s" "%s" -x' % (sys.executable, |
160 os.path.join(TESTDIR,'coverage.py')) | 160 os.path.join(TESTDIR,'coverage.py')) |
161 | 161 |