##// 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 print >> sys.stderr, 'ERROR: cannot mix -interactive and --jobs > 1'
67 print >> sys.stderr, 'ERROR: cannot mix -interactive and --jobs > 1'
68 sys.exit(1)
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 def vlog(*msg):
77 def vlog(*msg):
71 if verbose:
78 if verbose:
72 for m in msg:
79 for m in msg:
@@ -528,7 +535,7 b' def run_tests(tests):'
528 print "Accept this change? [n] ",
535 print "Accept this change? [n] ",
529 answer = sys.stdin.readline().strip()
536 answer = sys.stdin.readline().strip()
530 if answer.lower() in "y yes".split():
537 if answer.lower() in "y yes".split():
531 os.rename(test + ".err", test + ".out")
538 rename(test + ".err", test + ".out")
532 tested += 1
539 tested += 1
533 continue
540 continue
534 failed += 1
541 failed += 1
General Comments 0
You need to be logged in to leave comments. Login now