Comments
Patch
@@ -738,6 +738,8 @@ def tsttest(test, wd, options, replaceme
if len(cmd) == 2 and cmd[0] == 'cd':
l = ' $ cd %s || exit 1\n' % cmd[1]
script.append(l[4:])
+ elif l.startswith(' \\> '): # output line starts with ">"
+ expected.setdefault(pos, []).append(l[3:])
elif l.startswith(' > '): # continuations
after.setdefault(prepos, []).append(l)
script.append(l[4:])
@@ -787,6 +789,8 @@ def tsttest(test, wd, options, replaceme
if lout:
if not lout.endswith('\n'):
lout += ' (no-eol)\n'
+ if lout.startswith('> '):
+ lout = '\\' + lout
# find the expected output at the current position
el = None