run-tests: end doctest block when seeing a non-command
authorIdan Kamara <idankk86@gmail.com>
Thu, 13 Oct 2011 17:54:37 +0200
changeset 15248 3efbb5e8bf5c
parent 15247 3cd1605e9d8e
child 15249 f30c0a7b8346
run-tests: end doctest block when seeing a non-command
tests/run-tests.py
--- a/tests/run-tests.py	Thu Oct 13 17:54:35 2011 +0200
+++ b/tests/run-tests.py	Thu Oct 13 17:54:37 2011 +0200
@@ -525,7 +525,7 @@
     inblock = False
     for l in lines:
         if inblock:
-            if l.startswith('  $ '):
+            if l.startswith('  $ ') or not l.startswith('  '):
                 inblock = False
                 yield '  > EOF\n'
                 yield l