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