changeset 206:4edb6ef5a676

'Incorrect' is now stripped from external validator output
author Oleg Oshmyan <chortos@inbox.lv>
date Wed, 17 Aug 2011 21:03:28 +0300
parents 166a23999bf7
children 946e8c09ba12
files upreckon/testcases.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/upreckon/testcases.py	Wed Aug 17 20:44:54 2011 +0300
+++ b/upreckon/testcases.py	Wed Aug 17 21:03:28 2011 +0300
@@ -228,7 +228,7 @@
 				raise CannotStartValidator(sys.exc_info()[1])
 			with signal_ignorer:
 				comment = case.process.communicate()[0].strip()
-			match = re.match(r'(?i)(ok|(?:correct|wrong)(?:(?:\s|_)*answer)?)(?:$|\s+|[.,!:]+\s*)', comment)
+			match = re.match(r'(?i)(?:ok|(?:(?:in)?correct|wrong)(?:(?:\s|_)*answer)?)(?:$|\s+|[.,!:]+\s*)', comment)
 			if match:
 				comment = comment[match.end():]
 			if not case.problem.config.maxexitcode: