equal
deleted
inserted
replaced
102 os.symlink(sys.executable, my_python) |
102 os.symlink(sys.executable, my_python) |
103 except AttributeError: |
103 except AttributeError: |
104 # windows fallback |
104 # windows fallback |
105 shutil.copyfile(sys.executable, my_python) |
105 shutil.copyfile(sys.executable, my_python) |
106 shutil.copymode(sys.executable, my_python) |
106 shutil.copymode(sys.executable, my_python) |
107 |
107 |
108 def install_hg(): |
108 def install_hg(): |
109 vlog("# Performing temporary installation of HG") |
109 vlog("# Performing temporary installation of HG") |
110 installerrs = os.path.join("tests", "install.err") |
110 installerrs = os.path.join("tests", "install.err") |
111 |
111 |
112 os.chdir("..") # Get back to hg root |
112 os.chdir("..") # Get back to hg root |
356 |
356 |
357 if len(args) == 0: |
357 if len(args) == 0: |
358 args = os.listdir(".") |
358 args = os.listdir(".") |
359 for test in args: |
359 for test in args: |
360 if (test.startswith("test-") and '~' not in test and |
360 if (test.startswith("test-") and '~' not in test and |
361 ('.' not in test or test.endswith('.py') or |
361 ('.' not in test or test.endswith('.py') or |
362 test.endswith('.bat'))): |
362 test.endswith('.bat'))): |
363 ret = run_one(test) |
363 ret = run_one(test) |
364 if ret is None: |
364 if ret is None: |
365 skipped += 1 |
365 skipped += 1 |
366 elif not ret: |
366 elif not ret: |