##// END OF EJS Templates
tests: add -i switch...
Matt Mackall -
r3626:02e9355c default
parent child Browse files
Show More
@@ -38,6 +38,8 b' parser.add_option("-f", "--first", actio'
38 help="exit on the first test failure")
38 help="exit on the first test failure")
39 parser.add_option("-R", "--restart", action="store_true",
39 parser.add_option("-R", "--restart", action="store_true",
40 help="restart at last error")
40 help="restart at last error")
41 parser.add_option("-i", "--interactive", action="store_true",
42 help="prompt to accept changed output")
41
43
42 parser.set_defaults(timeout=180)
44 parser.set_defaults(timeout=180)
43 (options, args) = parser.parse_args()
45 (options, args) = parser.parse_args()
@@ -391,6 +393,13 b' try:'
391 if ret is None:
393 if ret is None:
392 skipped += 1
394 skipped += 1
393 elif not ret:
395 elif not ret:
396 if options.interactive:
397 print "Accept this change? [n] ",
398 answer = sys.stdin.readline().strip()
399 if answer.lower() in "y yes".split():
400 os.rename(test + ".err", test + ".out")
401 tested += 1
402 continue
394 failed += 1
403 failed += 1
395 if options.first:
404 if options.first:
396 break
405 break
General Comments 0
You need to be logged in to leave comments. Login now