Mercurial > ~astiob > upreckon > hgweb
changeset 4:06eef313aeaa
-c command line option fixes
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sat, 13 Feb 2010 23:40:53 +0000 |
parents | cd4304ff1d1b |
children | eb15a5a9b026 |
files | test.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test.py Fri Jan 22 20:16:07 2010 +0000 +++ b/test.py Sat Feb 13 23:40:53 2010 +0000 @@ -7,7 +7,7 @@ parser.add_option('-e', '--exclude', dest='exclude', action='append', help='test case number(s) to exclude, as a Python expression; multiple -e options can be supplied') parser.add_option('-c', '--cleanup', dest='clean', action='store_true', default=False, help='delete the copies of input/output files and exit') parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O; delete the stored input/output files if the solution uses standard I/O and the -c/--cleanup option is specified') -parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='only create a copy of the input/output files of the last test case for manual testing; to delete them, use options -cs') +parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='only create a copy of the input/output files of the last test case for manual testing; to delete them, use options -cs or -cm') parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed when finished testing') parser.add_option('-p', '--python', action='store_true', default=False, help='always parse all positional arguments as a single Python expression (including the first argument even if it names an executable file)') parser.add_option('-t', '--detect-time', dest='autotime', action='store_true', default=False, help='spend a second detecting the most precise time measurement function') @@ -470,7 +470,7 @@ ansname = ansname.replace('%', taskname) except NameError: ansname = taskname + '.ans' - else: + elif not stdio or tester or not options.erase: inname = inname.replace('%', taskname) outname = outname.replace('%', taskname) if tester: