##// END OF EJS Templates
Make run-tests.py --interactive work on Windows
Patrick Mezard -
r5800:2f597243 default
parent child Browse files
Show More
@@ -67,6 +67,13 b' if options.interactive and options.jobs '
67 67 print >> sys.stderr, 'ERROR: cannot mix -interactive and --jobs > 1'
68 68 sys.exit(1)
69 69
70 def rename(src, dst):
71 """Like os.rename(), trade atomicity and opened files friendliness
72 for existing destination support.
73 """
74 shutil.copy(src, dst)
75 os.remove(src)
76
70 77 def vlog(*msg):
71 78 if verbose:
72 79 for m in msg:
@@ -528,7 +535,7 b' def run_tests(tests):'
528 535 print "Accept this change? [n] ",
529 536 answer = sys.stdin.readline().strip()
530 537 if answer.lower() in "y yes".split():
531 os.rename(test + ".err", test + ".out")
538 rename(test + ".err", test + ".out")
532 539 tested += 1
533 540 continue
534 541 failed += 1
General Comments 0
You need to be logged in to leave comments. Login now